#42519 [NEW]: misleading comment in php.ini
| From: | erich dot iseli at iseli dot org | Date: | Sun, 02 Sep 2007 13:23:15 +0000 |
| Subject: | #42519 [NEW]: misleading comment in php.ini | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969377977@lists.php.net to get a copy of this message | ||
From: erich dot iseli at iseli dot org
Operating system: linux
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: misleading comment in php.ini
Description:
------------
In the following line in php.ini
memory_limit = 8M ; Maximum amount of memory a script may consume
(8MB)
the comment mentions "8MB" but if one really writes "memory_limit = 8MB"
then apache would hang when restarting even though it says:
/etc/init.d/apache2 start
* Starting apache 2.0 web server... [ ok ]
I'm writing this bug report because I've just experienced this problem and
while fixing it, I found out that many others have had the same issue.
Reproduce code:
---------------
replace memory_limit = 8M with
memory_limit = 8MB
Expected result:
----------------
- no misleading comment so that one doesn't even attempt to write "MB"
instead of M
- don't say "[ok]" but "[fail]" when restarting apache with the mention
that "8MB" is not known, assuming "8 bytes" or "did you mean
"8M"? (ok,
that would be an apache bug, but I think php should provide this failure
message to apache, doesn't it?)
- write more verbose error message to apache error.log
Actual result:
--------------
apache hangs when restarting, consuming a lot of CPU and only writing this
to error.log
Allowed memory size of 8 bytes exhausted (tried to allocate 9 bytes)
--
Edit bug report at http://bugs.php.net/?id=42519&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42519&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42519&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42519&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42519&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42519&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42519&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42519&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42519&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42519&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42519&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42519&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42519&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42519&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42519&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42519&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42519&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42519&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42519&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42519&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42519&r=mysqlcfg