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

From: Date: Wed, 22 Mar 2006 02:53:35 +0000
Subject: Re: What is the effect of --enable-memory-limit
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-232387@lists.php.net to get a copy of this message
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/

« previous php.general (#232387) next »