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 (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.4 OS: GNU/Linux (Fedora 14)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fedora at famillecollet dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC