Req #54201 [Com]: memory_limit 4G limit?
| From: | paulgao at yeah dot net | Date: | Tue, 22 Mar 2011 09:58:58 +0000 |
| Subject: | Req #54201 [Com]: memory_limit 4G limit? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159699@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54201&edit=1
ID: 54201
Comment by: paulgao at yeah dot net
Reported by: paulgao at yeah dot net
Summary: memory_limit 4G limit?
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:
I want set memory_limit to 4096M or bigger, plz tell me how to set?!
don't tell me set to -1. thx.
PS: my server have 32GB memory.
Previous Comments:
------------------------------------------------------------------------
[2011-03-22 10:23:21] aharvey@php.net
What Felipe said. :)
------------------------------------------------------------------------
[2011-03-09 13:29:10] felipe@php.net
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