ID: 37300 User updated by: astinky at lycos dot com Reported By: astinky at lycos dot com Status: Open Bug Type: Feature/Change Request Operating System: Windows Server 2003 PHP Version: 5.1.3 New Comment:
Hmmm, with this in mind I just re-read the ThreadStackSize Directive available in Apache since 2.1 http://httpd.apache.org/docs/2.2/mod/mpm_common.html#threadstacksize Might give that a try first. Previous Comments: ------------------------------------------------------------------------ [2006-05-11 21:56:31] astinky at lycos dot com Thanks for the tip, I'll give that a try. I already run the apache winnt mpm like so: Win32DisableAcceptEx ThreadsPerChild 64 MaxRequestsPerChild 10000 (stabilises it considerably) I'll try dropping ThreadsPerChild to 50 as well. ------------------------------------------------------------------------ [2006-05-11 21:35:51] [EMAIL PROTECTED] Thing that has changed between 5.0 and 5.1 is that 5.1 seems to be more memory hungry, especially when it comes to stack. The way to increase stack space availabe to PHP you can run: EDITBIN /STACK:4194304 httpd.exe in your Apache2.2\bin directory (editbin comes with vc++) You should also decrease ThreadsPerChild to 50 from 250 in your httpd.conf to be able to handle 4MB stack. ------------------------------------------------------------------------ [2006-05-11 20:44:40] [EMAIL PROTECTED] Memory limit is not enabled in 5.2.0 (PHP runs somewhat slower when it is enabled), but I suspect that this has nothing to do with your problem. ------------------------------------------------------------------------ [2006-05-11 19:55:12] astinky at lycos dot com That snapshot still does not allow setting the memory_limit in either the script or the php.ini. I ran the snapshot as-is at home on WinXP SP2 with no extensions loaded at all. (aside: the apache 2.2 handler still reports itself as "Apache 2.0 Handler") <?php echo 'memory_limit: '; echo ini_get("memory_limit"); ?> <?php echo 'memory_limit: '; ini_set("memory_limit", "32M"); echo ini_get("memory_limit"); ?> Both output only "memory_limit: " with no error generated. My fgetcsv test script does not crash on this version either. I'm kinda baffled at this point. If we get a working memory_limit for php on windows, great, I'll test it on my live shipyards script to see if it is the issue causing it to stop short of completion, if not, I'll have to track down other changes since 5.0.5 that may be causing this issue for me. ------------------------------------------------------------------------ [2006-05-11 18:17:03] astinky at lycos dot com It seems http://snaps.php.net/win32/php5.2-win32-latest.zip changes faster than I can download it. (~1hr) I got a corrupted zip file. I got the source OK though. I'l try: http://snaps.php.net/win32/php5.2-win32-200605111430.zip ------------------------------------------------------------------------ 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/37300 -- Edit this bug report at http://bugs.php.net/?id=37300&edit=1