ozbuyucusu.com why not ?

26Aug/092

Php Error: Allowed memory size of 262144 bytes exhausted

Today I come across a php error I havent seen in ages.

"Allowed memory size of 262144 bytes exhausted"

I rechecked everything in php.ini / .htaccess / code on server. I saw nothing wrong at start. memory limit was set to 4gb and there was no lines in code which modifies this variable. So what was the problem ?

Then I thought what if php cannot allocate 4gb of memory ? Then set memory limit to 1gb and it worked. The problem was simple, if php cannot allocate the memory limit you set it goes to its default value while phpinfo is still showing 4gb.

Tagged as: , 2 Comments

Pages

Categories

Blogroll

Archive

Meta