我刚将一个站点从
Linux转移到Windows,我收到了奇怪的致命错误消息.
我的Linux
PHP有256MB的内存限制,从来没有一个“内存不足”的致命错误.
现在在IIS上我有相同的内存限制,但我收到太多
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32508940 bytes) in C:\...\functions.php on line 0
我试图增加(400MB)看看会发生什么,这就是我得到的
PHP Fatal error: Allowed memory size of 419430400 bytes exhausted (tried to allocate 65013862 bytes) in C:\....\dbfunctions.php on line 1073741824
奇怪,它是相同的应用程序,相同的内存限制设置..
同样奇怪的是,第二个错误显示“在线1073741824”,但哇,该文件有500行.
这是Windows / IIS / PHP问题吗?
我的配置:
IIS 8.0,PHP 5.3.28,PHP处理程序php-cgi.exe