ID: 14358 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Old Status: Critical Status: Duplicate Old Bug Type: Apache related Bug Type: Output Control Operating System: win32 (2k/xp) PHP Version: 4.0CVS-2001-12-06 New Comment:
Although it seems it does not segfault/block. It seems there is bailout problem when memory is exhausted. This has been reported. <?php for ($i=0; $i < 1000000; $i++) { echo "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; } ?> === this errors are repeated for a single request === /home/yohgaki/public_html/bugs/large_output/bug.php(3) : Fatal error - Allowed memory size of 8388608 bytes exhausted at output.c:312 (tried to allocate 10240 bytes) NOTE: memory limit must be enabled. Previous Comments: ------------------------------------------------------------------------ [2001-12-22 11:34:48] [EMAIL PROTECTED] Can't reproduce with 4.1.0 final on Windows 2000 with Apache 1.3.22 (PHP as module), nor with a CVS build from 10 dec. ------------------------------------------------------------------------ [2001-12-06 04:35:57] [EMAIL PROTECTED] hey guys... this has been a problem for me for a long time, and so i finally decided either no one is using php4apache module on win32 because this problem is bad and it's been in php4 for a long time. so tonight i decided to research it because i could really benefit from running as a module and i don't want to leave apache. two similar bug_id's i found are 11093 & 14348 - they might be related, but the cause they give is much different. all i can come up with is this if a script produces large numbers of output blocks, it will crash. i made a simple script that causes it for me everytime. the script is large, so i zipped it (1k) and it's available here. http://www.newnetwork.com/bigoutput.zip if i turn on implicit flushing, the script will execute ok -most- of the time. which is where i got my output blocks theory. but it's theory... if i had more time i would get into the source some more and offer some better advice. apache 1.3 module and apache2 filter both have the same problem. oh, and i compiled it all from CVS with msvc6. i've been compiling my own php for a while now without any problems - cgi version only. any ideas? any other information you might want? -ben ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14358&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]