#34557 [Opn->Csd]: php -m exits with "error" 1
| From: | johannes@php.net | Date: | Thu, 06 Oct 2005 20:40:21 +0000 |
| Subject: | #34557 [Opn->Csd]: php -m exits with "error" 1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86155@lists.php.net to get a copy of this message | ||
ID: 34557
Updated by: johannes@php.net
Reported By: glen at delfi dot ee
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: PLD Linux
PHP Version: 5.0.5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-09-20 09:33:07] glen at delfi dot ee
Description:
------------
php -m is documented as:
-m Show compiled in modules
request to change it to exit 0, if there's no particular
reason it to be 1.
for example:
in a schell script, which has "set -e" enabled, and running
"php -m" terminates the script. the "error" exit code is
really unexpected, because there's no errors (at least if
there were they weren't printed).
Reproduce code:
---------------
$ php -m; echo EXIT: $?
[PHP Modules]
bcmath
ftp
libxml
mhash
pcre
radius
session
SimpleXML
SPL
standard
tokenizer
xml
zlib
[Zend Modules]
EXIT: 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34557&edit=1