Edit report at http://bugs.php.net/bug.php?id=54201&edit=1
ID: 54201 Updated by: [email protected] Reported by: paulgao at yeah dot net Summary: memory_limit 4G limit? -Status: Open +Status: Bogus Type: Feature/Change Request Package: PHP options/info functions Operating System: irrelevant PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: What Felipe said. :) Previous Comments: ------------------------------------------------------------------------ [2011-03-09 13:29:10] [email protected] As we use a long for memory limit, using 4096M we got: var_dump(intval(4096*1024*1024)); // 0 ------------------------------------------------------------------------ [2011-03-09 11:43:49] paulgao at yeah dot net Description: ------------ if memory_limit set to 4096M, Segfault. Test script: --------------- memory_limit = 4096M Expected result: ---------------- [root@server]# php -v PHP 5.3.5 (cli) (built: Feb 28 2011 22:46:15) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies Actual result: -------------- [root@server]# php -v Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 34816 bytes) in Unknown on line 0 Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54201&edit=1
