Req #54201 [Opn->Bgs]: memory_limit 4G limit?

From: Date: Tue, 22 Mar 2011 09:23:23 +0000
Subject: Req #54201 [Opn->Bgs]: memory_limit 4G limit?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-159697@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
 Updated by:         aharvey@php.net
 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] 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


Thread (4 messages)

« previous php.bugs (#159697) next »