| Anonymous | Login | Signup for a new account | 10-31-2025 16:16 PDT | 
| Main | My View | View Issues | Change Log | Docs | 
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0002091 | [Quercus] | major | always | 10-18-07 23:56 | 10-19-07 13:53 | ||||
| Reporter | koreth | View Status | public | ||||||
| Assigned To | ferg | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.1.4 | Product Version | 3.1.3 | ||||
| Product Build | |||||||||
| Summary | 0002091: Output buffering goes into infinite loop if output exceeds a certain size | ||||||||
| Description | <?php function stash_it($text) { global $output; $output = $text; } ob_start('stash_it'); for ($i = 0; $i < 10000; $i++) { print " - $i"; } ob_end_flush(); print $output; Vanilla PHP prints the numbers 0 to 9999. Quercus gets caught in an infinite loop calling ob_end_flush -- it looks like a link list entry manages to point to itself as the next item. (OutputBuffer.getContents()). If you reduce the maximum number to, say, 1000, this works fine under Quercus. | ||||||||
| Steps To Reproduce | |||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|  | |||||||||
| Mantis 1.0.0rc3[^]
	Copyright © 2000 - 2005 Mantis Group
	31 total queries executed. 27 unique queries executed. |