Re: What is the effect of --enable-memory-limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Khai wrote:
This page does not explain the consequence of what may happen if my script indeed need more memory than what is set in php.ini . Will PHP / Apache / OS (Linux, Unix) terminate the request with a 500 internal server error ? Will the script be allowed to finished, and Apache/PHP gracefully terminate the child afterward ?

Thanks,
Khai
Chris wrote:

Khai wrote:

If I compile php with --enable-memory-limit and set a memory limit in php.ini, what will this do ?



http://www.php.net/manual/en/ini.core.php#ini.memory-limit



The server will stop it with a fatal error, something like this:

Allowed memory size of X bytes exhausted (tried to allocate Y bytes).


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux