Anonymous | Login | Signup for a new account | 12-17-2024 08:27 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product Version | 3.1.3 | ||||||
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. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |