This is a discussion on Out of Stack space??? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, Help needed! Yesterday I edited a large (not the largest) page, that is processed by php into an html ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Help needed! Yesterday I edited a large (not the largest) page, that is processed by php into an html page. It crashed Apache. There was a "child process exited with status 3221225725 -- Restarting" in the error log, which I understand is the code for it ran out of stack space. The php script that works fine for about 500 pages. Because it is so well used, (and I wrote most of it), I am reasonably confident that it is correct and it does NOT use recursion. Conclusion - the process really was out of stack space! I can find no way to alter the stack space in Apache (under windows). I did find that sometimes changing the version of Apache will help so I have installed Apache 2.2.4 - the absolute latest. Still get the same problem. (Yes - I did update the php5 dll file and had to take out fast cgi). Environment. Windows 2K - Patched to about 2 weeks ago. Apache 2.2.4 (with OUT fastcgi) or 2.0 with fastcgi php 5.1.4 Has anyone any idea on how to give the service more stack space, or test to prove it is recursing up the stack or not. Thanks Ian |
|
|||
|
Further to my previous post. The page works just fine under my hosting account. Apache/1.3.36 (Unix) (Red-Hat/Linux) PHP/5.0.3 mod_ssl/2.8.27 OpenSSL/0.9.7a FrontPage/4.0.4.3 So the problem appears most likely to be related to windows (but might be Apache2.? or php 5.1.) Does anyone have a solution? Regards Ian |