|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36869 ob_start memory leak
Submitted: 2006-03-27 06:43 UTC Modified: 2006-03-27 10:26 UTC
From: chen dot daqi at gmail dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 5.1.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
2 + 40 = ?
Subscribe to this entry?

 [2006-03-27 06:43 UTC] chen dot daqi at gmail dot com
ob_start memory leak when specify chunsize parameter

Reproduce code:
function callback($buffer)
        return $buffer;
var_dump(ob_start("callback", 2));
echo "Hi!abc";

Expected result:

Actual result:
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 ===


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-27 10:26 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Feb 24 09:01:25 2020 UTC