ID: 40701 User updated by: michaeldaly at magma dot ca Reported By: michaeldaly at magma dot ca -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: Win XP Pro -PHP Version: 5.2.1 +PHP Version: 5.2.2 New Comment:
Is there a way for me to capture some kind of debug information that can help you? I downloaded the debug files along with the latest snap and they were just PDB files and I don't know what to do with them. Previous Comments: ------------------------------------------------------------------------ [2007-03-06 18:10:37] [EMAIL PROTECTED] Cannot reproduce anything like that. ------------------------------------------------------------------------ [2007-03-06 18:02:56] michaeldaly at magma dot ca I can find no other mechanism for setting a memory limit. PHP does _not_ report 8MB - it reports 512MB as per the php.ini setting. This is reported in phpinfo.php. This allocation error is occurring at many different allocation levels. For example, the following occurred yesterday. The first column is the allocated amount, the second is the amount attempted and the third is the number of times it occurred. Allocated Add Freq 1048576 6144 1 1835008 98304 2 2359296 98304 2 2883584 24576 3 3407872 24576 2 3670016 24576 2 4456448 6144 1 5242880 393216 1 5505024 98304 1 5767168 1572864 3 5767168 98304 1 6029312 393216 1 6291456 1572864 2 6291456 98304 1 6553600 1572864 1 6553600 24576 1 6553600 393216 8 6815744 393216 4 7077888 1572864 11 7340032 1572864 5 7602176 1572864 1 7602176 393216 1 786432 24576 4 786432 6144 3 9175040 1572864 2 All these values are well below the 512MB limit. ------------------------------------------------------------------------ [2007-03-05 10:02:55] [EMAIL PROTECTED] Make sure you didn't set the memory limit in any other way (windows registry, httpd.conf, htaccess etc.). If PHP says your limit is set to 8Mb, I see no reason why I shouldn't trust PHP. ------------------------------------------------------------------------ [2007-03-04 20:21:23] michaeldaly at magma dot ca Additional thought - may be unrelated. On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but had another, possibly related. There was a frequent bug that I fixed with Win32DisableAcceptEx in httpd.conf. This then introduced a memory allocation bug in Apache. Apparently, that situation was relatively common on Windows machines with not a lot of RAM - mine was 512MB. With current server, I have 2GB Ram and the Apache allocation bug hasn't shown up. However, now PHP has allocation errors. Is it possible one was "hiding" the other? Is it possible the two situations are related? I only mention this in the hope it might twig one of you PHP wizards. ------------------------------------------------------------------------ [2007-03-04 17:40:36] michaeldaly at magma dot ca phpinfo shows memory_limit 512M. BTW this coincides with an Apache error of: Parent: child process exited with status 3221225477 -- Restarting. And -access violation (hex of 3221225477 is 0xC0000005) according to a post on a web site I found. This error with php apparently has a long history and comes and goes by mixing and matching different versions of Apache and PHP. I don't know if this adds any useful information, but it sounds like one of those nasty problems that is hard to debug and fix. ------------------------------------------------------------------------ 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/40701 -- Edit this bug report at http://bugs.php.net/?id=40701&edit=1