php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53527 php-fpm --test doesn't set a valuable return value
Submitted: 2010-12-12 17:44 UTC Modified: 2010-12-18 12:22 UTC
From: fedora at famillecollet dot com Assigned: fat
Status: Closed Package: FPM related
PHP Version: 5.3.4 OS: GNU/Linux (Fedora 14)
Private report: No CVE-ID:
 [2010-12-12 17:44 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-18 12:22 UTC] fat@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-18 12:22 UTC] fat@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: fat
 [2010-12-18 12:22 UTC] fat@php.net
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.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 07:02:06 2014 UTC