From: Operating system: GNU/Linux (Fedora 14) PHP version: 5.3.4 Package: FPM related Bug Type: Bug Bug description:php-fpm --test doesn't set a valuable return value
Description: ------------ php-fpm --test always return 255 It will be great if the return code give information about the result. It will allow to create an "intelligent" init script to reload the config Something like: if php-fpm --test; then killproc -p ${pidfile} php-fpm -USR2 fi Test script: --------------- # php-fpm --test ; echo $? Expected result: ---------------- Dec 12 17:35:19.752605 [NOTICE] configuration file /etc/php-fpm.conf test is successful 0 Actual result: -------------- Dec 12 17:35:19.752605 [NOTICE] configuration file /etc/php-fpm.conf test is successful 255 -- Edit bug report at http://bugs.php.net/bug.php?id=53527&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53527&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53527&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53527&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53527&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53527&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53527&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53527&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53527&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53527&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53527&r=support Expected behavior: http://bugs.php.net/fix.php?id=53527&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53527&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53527&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53527&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53527&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53527&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53527&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53527&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53527&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53527&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53527&r=mysqlcfg