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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Oct 14 11:01:27 2024 UTC