php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52667 memory_limit ignored
Submitted: 2010-08-22 15:41 UTC Modified: 2010-08-22 17:15 UTC
From: j dot chetwynd at btinternet dot com Assigned:
Status: Wont fix Package: PHP options/info functions
PHP Version: 5.2.14 OS: os x leopard
Private report: No CVE-ID: None
 [2010-08-22 15:41 UTC] j dot chetwynd at btinternet dot com
Description:
------------
php.ini:
memory_limit = 20      ; 20 Bytes not: Maximum amount of memory a script may consume (128MB)

phpinfo:
memory_limit	20	20

seems clear to me at least that any web app on this server should crash, or send error, but it does not:

ie like: Bug #52549: No 'M' in memory_limit variable returns 'Could not startup.' 

but app runs fine!

> memory-limit is always enabled (--enable-memory-limit removed)
> default value if memory-limit is set to 128M
http://bugs.php.net/42525


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-22 16:23 UTC] kalle@php.net
Im not sure I totally understand your issue. So you are saying, that if you set memory_limit to 20 (20 bytes) then you do not get any startup error?
 [2010-08-22 16:23 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2010-08-22 16:53 UTC] j dot chetwynd at btinternet dot com
sorry, I could not find a way to login, comment or close this bug.

has been resolved since updating to 5.3
 [2010-08-22 17:15 UTC] kalle@php.net
-Status: Feedback +Status: Wont fix
 [2010-08-22 17:15 UTC] kalle@php.net
Thanks, 5.2 only gets security updates so this is a Wont fix :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC