[PHP-BUG] Bug #63831 [NEW]: Specific 4G/4096M/4194304K memory_limit Fatal Error

2012-12-21 Thread scott at schrecktech dot com
From: scott at schrecktech dot com
Operating system: Multiple
PHP version:  Irrelevant
Package:  *Configuration Issues
Bug Type: Bug
Bug description:Specific 4G/4096M/4194304K memory_limit Fatal Error

Description:

---
>From manual page: http://www.php.net/ini.core
---

PHP will not run with a 4G, 4096M or 4194304K

PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to
allocate 
523800 bytes) in Unknown on line 0


Test script:
---
Change the memory_limit from the byte value to the "K", "M" or "G" version
of 4Gb to see fatal error.

EXAMPLE:

; works:
memory_limit = 4294967296

; fails:
;memory_limit = 4G
;memory_limit = 4096M
;memory_limit = 4194304K

Expected result:

One should be able to set the memory_limit with the "G", "M" and "K"
versions of 
4Gb.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=63831&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63831&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63831&r=trysnapshot53
Try a snapshot (trunk): 
https://bugs.php.net/fix.php?id=63831&r=trysnapshottrunk
Fixed in SVN:   https://bugs.php.net/fix.php?id=63831&r=fixed
Fixed in release:   https://bugs.php.net/fix.php?id=63831&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63831&r=needtrace
Need Reproduce Script:  https://bugs.php.net/fix.php?id=63831&r=needscript
Try newer version:  https://bugs.php.net/fix.php?id=63831&r=oldversion
Not developer issue:https://bugs.php.net/fix.php?id=63831&r=support
Expected behavior:  https://bugs.php.net/fix.php?id=63831&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=63831&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=63831&r=submittedtwice
register_globals:   https://bugs.php.net/fix.php?id=63831&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63831&r=php4
Daylight Savings:   https://bugs.php.net/fix.php?id=63831&r=dst
IIS Stability:  https://bugs.php.net/fix.php?id=63831&r=isapi
Install GNU Sed:https://bugs.php.net/fix.php?id=63831&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63831&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63831&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63831&r=mysqlcfg



Bug #63831 [Com]: Specific 4G/4096M/4194304K memory_limit Fatal Error

2012-12-28 Thread scott at schrecktech dot com
Edit report at https://bugs.php.net/bug.php?id=63831&edit=1

 ID: 63831
 Comment by: scott at schrecktech dot com
 Reported by:scott at schrecktech dot com
 Summary:Specific 4G/4096M/4194304K memory_limit Fatal Error
 Status: Not a bug
 Type:   Bug
 Package:*Configuration Issues
 Operating System:   Multiple
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

bug #54201 does show the same issue, but this entry below identifies that it is 
explicitly at a unique value where the bug occurs, not using the byte value.


Previous Comments:

[2012-12-21 22:30:23] fel...@php.net

Please, take a look at bug #54201.


[2012-12-21 20:24:36] scott at schrecktech dot com

Description:

---
>From manual page: http://www.php.net/ini.core
---

PHP will not run with a 4G, 4096M or 4194304K

PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to 
allocate 
523800 bytes) in Unknown on line 0


Test script:
---
Change the memory_limit from the byte value to the "K", "M" or "G" version of 
4Gb to see fatal error.

EXAMPLE:

; works:
memory_limit = 4294967296

; fails:
;memory_limit = 4G
;memory_limit = 4096M
;memory_limit = 4194304K

Expected result:

One should be able to set the memory_limit with the "G", "M" and "K" versions 
of 
4Gb.







-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63831&edit=1


Bug #63831 [Com]: Specific 4G/4096M/4194304K memory_limit Fatal Error

2012-12-28 Thread scott at schrecktech dot com
Edit report at https://bugs.php.net/bug.php?id=63831&edit=1

 ID: 63831
 Comment by: scott at schrecktech dot com
 Reported by:scott at schrecktech dot com
 Summary:Specific 4G/4096M/4194304K memory_limit Fatal Error
 Status: Not a bug
 Type:   Bug
 Package:*Configuration Issues
 Operating System:   Multiple
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

The "zend_alloc.c" shows the error condition being hit when setting the 
memory_limit with non-byte value equal to 4G.  

may be the differences in line 1965 and line 2276?  A debug build may show the 
filename and line number?


Previous Comments:

[2012-12-28 17:06:39] scott at schrecktech dot com

bug #54201 does show the same issue, but this entry below identifies that it is 
explicitly at a unique value where the bug occurs, not using the byte value.


[2012-12-21 22:30:23] fel...@php.net

Please, take a look at bug #54201.


[2012-12-21 20:24:36] scott at schrecktech dot com

Description:

---
>From manual page: http://www.php.net/ini.core
---

PHP will not run with a 4G, 4096M or 4194304K

PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to 
allocate 
523800 bytes) in Unknown on line 0


Test script:
---
Change the memory_limit from the byte value to the "K", "M" or "G" version of 
4Gb to see fatal error.

EXAMPLE:

; works:
memory_limit = 4294967296

; fails:
;memory_limit = 4G
;memory_limit = 4096M
;memory_limit = 4194304K

Expected result:

One should be able to set the memory_limit with the "G", "M" and "K" versions 
of 
4Gb.







-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63831&edit=1