I have been working for the last few months on a CakePHP application.
Most of this time I was developing on Lubuntu, using lampp package.
Everything works fine in this setting, as it does on two different remote servers I have access to.
Few days ago circumstances forced me to move with the development to a laptop device with Windows 7 as an OS.
And the application doesn't work here. php_error_log contained Allowed memory size of 134217728 bytes exhausted
.
I've switched memory_limit
to -1
in php.ini, and now it's PHP Fatal error: Out of memory (allocated 1488453632) (tried to allocate 15470592 bytes)
This smells like an infinite loop, but the application still works correctly on other servers. And other applications, including freshly downloaded Cakephp package, work fine on this device.
I'm confused with the apparent exclusiveness of this error. I can provide additional information if you tell me what should I check.
Update:
-recursive
was at 3
, but setting it to -1
haven't changed anything. Also, in most cases we set recursive
individually for each find(...)
call.
-setting debug
to 0
brings no noticeable changes.
Update2:
I have solved the issue, sort of. I'll Provide details in the answer.