Bug #45392 [Com]: ob_start()/ob_end_clean() and memory_limit

From: Date: Thu, 13 Mar 2014 15:50:20 +0000
Subject: Bug #45392 [Com]: ob_start()/ob_end_clean() and memory_limit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184775@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=45392&edit=1 ID: 45392 Comment by: php at speed dot 1s dot fr Reported by: flebron at bumeran dot com Summary: ob_start()/ob_end_clean() and memory_limit Status: Closed Type: Bug Package: Output Control Operating System: * PHP Version: 5CVS-2008-11-01 Assigned To: iliaa Block user comment: N Private report: N New Comment: Why is this issue marked as "Closed"? Doesn't seem to be fixed. Using PHP 5.3.3, error_reporting set to -1. Code: ---------- $img = @imagecreatefromstring(file_get_contents($file)); ob_start(); imagepng($img); $contents = ob_get_clean(); imagedestroy($img); Output: ---------- *PNG IHDR *** (These seem to be the first few characters of the image) Log: ---------- PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10240 bytes) Please reopen this issue. Previous Comments: ------------------------------------------------------------------------ [2014-03-13 15:50:19] php at speed dot 1s dot fr Why is this issue marked as "Closed"? Doesn't seem to be fixed. Using PHP 5.3.3, error_reporting set to -1. Code: ---------- $img = @imagecreatefromstring(file_get_contents($file)); ob_start(); imagepng($img); $contents = ob_get_clean(); imagedestroy($img); Output: ---------- *PNG IHDR *** (These seem to be the first few characters of the image) Log: ---------- PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10240 bytes) Please reopen this issue. ------------------------------------------------------------------------ [2011-12-13 10:56:49] jakoch at web dot de Test still fails in head: http://gcov.php.net/viewer.php? version=PHP_HEAD&func=tests&file=tests%2Flang%2Fbug45392.phpt ------------------------------------------------------------------------ [2011-08-24 15:56:03] joey@php.net Automatic comment from SVN on behalf of joey Revision: http://svn.php.net/viewvc/?view=revision&revision=315430 Log: Fix tests/lang/bug45392.phpt to log expected error when run with -n flag ------------------------------------------------------------------------ [2009-12-11 15:42:16] svn@php.net Automatic comment from SVN on behalf of jani Revision: http://svn.php.net/viewvc/?view=revision&revision=291992 Log: MF53:- Fixed bug #45392 (ob_start()/ob_end_clean() and memory_limit) #Ilia.. ------------------------------------------------------------------------ [2009-04-30 11:59:26] hwallenstone at gmx dot de Changelog for 5.2.7 states this Bug as "Fixed", although it still there in 5.2.8. As it never went into 5.2, the Changelog should be changed. ------------------------------------------------------------------------ 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=45392 -- Edit this bug report at https://bugs.php.net/bug.php?id=45392&edit=1

« previous php.bugs (#184775) next »