Bug #67644 [ReO->Csd]: Memory corruption & crash during ob_start function callback

From: Date: Tue, 07 Oct 2014 23:13:22 +0000
Subject: Bug #67644 [ReO->Csd]: Memory corruption & crash during ob_start function callback
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187926@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67644&edit=1 ID: 67644 Updated by: stas@php.net Reported by: jocelyn dot fournier at gmail dot com Summary: Memory corruption & crash during ob_start function callback -Status: Re-Opened +Status: Closed Type: Bug Package: Reproducible crash Operating System: Mac OS X PHP Version: 5.4.30 Assigned To: stas Block user comment: N Private report: N New Comment: Automatic comment on behalf of stas Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=fe551c089a7d309e3fa08513f1d1e287141cd202 Log: Revert "Fix bug #67644 - Memory corruption & crash during ob_start function callback" Previous Comments: ------------------------------------------------------------------------ [2014-09-02 21:20:20] stas@php.net had to revert the fix, breaks tests. Will look more into it. ------------------------------------------------------------------------ [2014-09-02 21:19:44] stas@php.net Automatic comment on behalf of stas Revision: http://git.php.net/?p=php-src.git;a=commit;h=fe551c089a7d309e3fa08513f1d1e287141cd202 Log: Revert "Fix bug #67644 - Memory corruption & crash during ob_start function callback" ------------------------------------------------------------------------ [2014-09-02 19:33:25] stas@php.net Automatic comment on behalf of stas Revision: http://git.php.net/?p=php-src.git;a=commit;h=53fa6c5b6b5b09059ba54c8912d0c0aef57aa4ff Log: Fix bug #67644 - Memory corruption & crash during ob_start function callback ------------------------------------------------------------------------ [2014-08-31 12:00:34] jocelyn dot fournier at gmail dot com Ok, so the register_shutdown + ob_start approach is the best way to do this, as long as we are sure register_shutdown is called before ob_start (which should always be the case). I cannot use ob_flush() because my lib is loaded on auto_prepend_file. ------------------------------------------------------------------------ [2014-08-31 01:35:00] stas@php.net BTW, if you add a flush at the end of the script, this also fixes the issue. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=67644 -- Edit this bug report at https://bugs.php.net/bug.php?id=67644&edit=1

« previous php.bugs (#187926) next »