I just transferred one site from Linux to Windows and I'm getting strange fatal error messages. My Linux PHP had a 256MB memory limit and never had a single "out of memory" fatal error.
Now on IIS I have the same memory limit but I'm receiving too many
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32508940 bytes) in C:\...\functions.php on line 0
I tried to increase (400MB) to see what will happened and this is what I got
PHP Fatal error: Allowed memory size of 419430400 bytes exhausted (tried to allocate 65013862 bytes) in C:\....\dbfunctions.php on line 1073741824
Strange, it's the same application, same memory limit settings.. Also strange is that 2nd error says "on line 1073741824" but wow, that file has 500 lines. Is this a Windows/IIS/PHP problem?
My config: IIS 8.0, PHP 5.3.28, PHP handler php-cgi.exe