From:             tomwys at o2 dot pl
Operating system: Linux
PHP version:      5.2.0
PHP Bug Type:     Output Control
Bug description:  ob_start call many times - memory error

Description:
------------
I have tested this code on two machines. I have memory error  or endless
loop.

On first machine code fails from $count = 385 on second machine from
$count = 1633.

Reproduce code:
---------------
<?php
$count = 385;
for($i = 1; $i < $count; $i ++) {
  ob_start();
  echo $i;
  ob_flush(); 
} 

?>

Expected result:
----------------
123456789101112[etc.]

Actual result:
--------------
First machine:
1[there is endless loop and 100% CPU]

Second machine:
1*** glibc detected *** double free or corruption (top):
0x0000000004c9c370 ***
Aborted


-- 
Edit bug report at http://bugs.php.net/?id=40259&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40259&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40259&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40259&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40259&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40259&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40259&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40259&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40259&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40259&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40259&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40259&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40259&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40259&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40259&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40259&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40259&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40259&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40259&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40259&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40259&r=mysqlcfg

Reply via email to