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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 + 9 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 14:01:30 2024 UTC