Bug #54443 [Com]: ini_set('memory_limit', '512M') fail

From: Date: Fri, 01 Apr 2011 14:13:06 +0000
Subject: Bug #54443 [Com]: ini_set('memory_limit', '512M') fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-159894@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 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

« previous php.bugs (#159894) next »