Edit report at http://bugs.php.net/bug.php?id=53527&edit=1
ID: 53527 Updated by: f...@php.net Reported by: fedora at famillecollet dot com Summary: php-fpm --test doesn't set a valuable return value -Status: Open +Status: Closed Type: Bug Package: FPM related Operating System: GNU/Linux (Fedora 14) PHP Version: 5.3.4 -Assigned To: +Assigned To: fat Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. 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: ------------------------------------------------------------------------ [2010-12-18 12:22:13] f...@php.net Automatic comment from SVN on behalf of fat Revision: http://svn.php.net/viewvc/?view=revision&revision=306426 Log: - Fixed bug #53527 (php-fpm --test doesn't set a valuable return value). ------------------------------------------------------------------------ [2010-12-12 17:44:37] fedora at famillecollet dot com 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 this bug report at http://bugs.php.net/bug.php?id=53527&edit=1