ID:               34557
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to