From:             glen at delfi dot ee
Operating system: PLD Linux
PHP version:      5.0.5
PHP Bug Type:     Feature/Change Request
Bug description:  php -m exits with "error" 1

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 bug report at http://bugs.php.net/?id=34557&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34557&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34557&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34557&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34557&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34557&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34557&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34557&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34557&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34557&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34557&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34557&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34557&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34557&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34557&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34557&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34557&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34557&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34557&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34557&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34557&r=mysqlcfg

Reply via email to