ID: 36869 Updated by: [EMAIL PROTECTED] Reported By: chen dot daqi at gmail dot com -Status: Open +Status: Closed Bug Type: Output Control Operating System: linux PHP Version: 5.1.2 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-03-27 06:43:41] chen dot daqi at gmail dot com Description: ------------ ob_start memory leak when specify chunsize parameter Reproduce code: --------------- <?php function callback($buffer) { return $buffer; } var_dump(ob_start("callback", 2)); echo "Hi!abc"; ?> Expected result: ---------------- boolean(true) Hi!abc Actual result: -------------- bool(true) Hi!abc[Mon Mar 27 12:32:37 2006] Script: 'ob_start_memory_leak.php' /home/xlchen/php-5.1.2/main/output.c(458) : Freeing 0x0847F8D4 (9 bytes), script=ob_start_memory_leak.php [Mon Mar 27 12:32:37 2006] Script: 'ob_start_memory_leak.php' /home/xlchen/php-5.1.2/main/output.c(456) : Freeing 0x0846D384 (16 bytes), script=ob_start_memory_leak.php === Total 2 memory leaks detected === ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36869&edit=1
