|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-06 04:35 UTC] djanix at hotmail dot com
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
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.