ID: 40259 Updated by: [EMAIL PROTECTED] Reported By: tomwys at o2 dot pl -Status: Open +Status: Assigned Bug Type: Output Control Operating System: Linux PHP Version: 5.2.0 -Assigned To: +Assigned To: tony2001 New Comment:
Re-assigned. I think the original issue has to do with Zend MM. Previous Comments: ------------------------------------------------------------------------ [2007-01-29 06:06:04] noah at rave dot ca <?php set_time_limit(0); $handle = imagecreatefromjpeg('images/large.jpg'); for ($i = 1; $i < 1000; $i++) { ob_start(); imagejpeg($handle, '', 90); $imgdata = ob_get_contents(); ob_end_clean(); } ?> Apache keeps running and PHP gives Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0 with every pageload after so no php pages will load... ------------------------------------------------------------------------ [2007-01-29 03:38:42] noah at rave dot ca I have the same problem... Apache starts to user 50% cpu and then crashes giving: Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0 ------------------------------------------------------------------------ [2007-01-28 10:52:08] judas dot iscariote at gmail dot com I got a segfault with $count = 1633. in 5.2.0 with 5_2 CVS in debug mode I get For exmaple ./sapi/cli/php -dmemory_limit=4M obmess.php 1PHP Fatal error: Allowed memory size of 4194304 bytes exhausted at /home/cristian/php5/main/output.c:436 (tried to allocate 40961 bytes) in /local/back/home/cristian/php5/obmess.php on line 4 [Sun Jan 28 07:49:34 2007] Script: 'obmess.php' --------------------------------------- /home/cristian/php5/main/output.c(316) : Block 0x00EF8FE8 status: Beginning: Cached Freed (invalid) Start: OK End: OK --------------------------------------- [Sun Jan 28 07:49:34 2007] Script: 'obmess.php' --------------------------------------- /home/cristian/php5/main/output.c(319) : Block 0x0102CD58 status: Beginning: Freed Start: OK End: OK ------------------------------------------------------------------------ [2007-01-28 08:15:38] [EMAIL PROTECTED] It works even fine here with a count of 50000 if USE_ZEND_ALLOC=0 is set. Maybe a MM failure? ------------------------------------------------------------------------ [2007-01-27 22:35:17] [EMAIL PROTECTED] Mike, this looks like a stack overflow to me (note that ob_flush() is used, not ob_end_flush() so we got insane amount of nested buffers). Do you think you can do something about it? ------------------------------------------------------------------------ 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 http://bugs.php.net/40259 -- Edit this bug report at http://bugs.php.net/?id=40259&edit=1