note 73643 added to ini.sect.resource-limits
| From: | VladimirKornea at osu1 dot php dot net | Date: | Mon, 05 Mar 2007 18:12:20 +0000 |
| Subject: | note 73643 added to ini.sect.resource-limits | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124114@lists.php.net to get a copy of this message | ||
At runtime you can lower the memory limit or remove it altogether, but you can't increase it.
If your default memory_limit is 8M:
<?
ini_set('memory_limit', '4M'); // works
ini_set('memory_limit', '-1'); // works
ini_set('memory_limit', '16M'); // doesn't work
?>
True for PHP 5.2.1
----
Server IP: 64.71.164.2
Probable Submitter: 65.106.184.148
----
Manual Page -- http://www.php.net/manual/en/ini.sect.resource-limits.php
Edit -- https://master.php.net/note/edit/73643
Del: integrated -- https://master.php.net/note/delete/73643/integrated
Del: useless -- https://master.php.net/note/delete/73643/useless
Del: bad code -- https://master.php.net/note/delete/73643/bad+code
Del: spam -- https://master.php.net/note/delete/73643/spam
Del: non-english -- https://master.php.net/note/delete/73643/non-english
Del: in docs -- https://master.php.net/note/delete/73643/in+docs
Del: other reasons-- https://master.php.net/note/delete/73643
Reject -- https://master.php.net/note/reject/73643
Search -- https://master.php.net/manage/user-notes.php