|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chen dot daqi at gmail dot com
New email:
PHP Version: OS:


 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 20 09:03:36 2021 UTC