Bug #54443 [Opn->Bgs]: ini_set('memory_limit', '512M') fail
| From: | sixd@php.net | Date: | Fri, 01 Apr 2011 18:36:19 +0000 |
| Subject: | Bug #54443 [Opn->Bgs]: ini_set('memory_limit', '512M') fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159900@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54443&edit=1
ID: 54443
Updated by: sixd@php.net
Reported by: c dot madmax at gmail dot com
Summary: ini_set('memory_limit', '512M') fail
-Status: Open
+Status: Bogus
Type: Bug
Package: PHP options/info functions
Operating System: Debian Squeeze
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
Not a core PHP issue as recognized in the bug reporter's update
Previous Comments:
------------------------------------------------------------------------
[2011-04-01 16:13:06] c dot madmax at gmail dot com
Solution:
edit /etc/php5/conf.d/suhosin.ini
add
suhosin.memory_limit = 512M
------------------------------------------------------------------------
[2011-04-01 15:52:09] c dot madmax at gmail dot com
Description:
------------
ini_set('memory_limit', $value) return false if i try to use more than
128M of memory! No error message is generated!
It worked in PHP 5.2.9 witout any problems.
Test script:
---------------
if(ini_set('memory_limit', '512M'))
{
echo "memory_limit set to 512MB";
}
else
{
echo "ini_set() failed!"
};
Expected result:
----------------
The script should output:
memory_limit set to 512MB
Actual result:
--------------
The script output:
ini_set() failed!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54443&edit=1