Edit report at http://bugs.php.net/bug.php?id=54443&edit=1

 ID:                 54443
 Comment by:         c dot madmax at gmail dot com
 Reported by:        c dot madmax at gmail dot com
 Summary:            ini_set('memory_limit', '512M') fail
 Status:             Open
 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:

Solution:



edit /etc/php5/conf.d/suhosin.ini



add



suhosin.memory_limit = 512M


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to