The -d parameter doesn't work

Bug #55533 The -d parameter doesn't work
Submitted: 2011-08-29 22:02 UTC Modified: 2011-10-09 14:36 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: alvaro at alobbs dot com Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.8 OS: All
Private report: No CVE-ID: None

 [2011-08-29 22:02 UTC] alvaro at alobbs dot com

Description:
------------
According to php-fpm's --help output:

-----
  -d foo[=bar]     Define INI entry foo with value 'bar'
-----

However, -d parameters are parsed but not applied. I checked it with the regular 
php and php-
cgi binaries as well. The only version failing is FPM though. In the following 
test the 
"allow_url_fopen" configuration key is used as an example.

php:
=============
$ php -i | grep allow_url_fopen
allow_url_fopen => On => On

$ php -i -d allow_url_fopen=Off | grep allow_url_fopen
allow_url_fopen => Off => Off
=============

php-cgi:
=============
$ php-cgi -i | grep allow_url_fopen
<tr><td class="e">allow_url_fopen</td><td class="v">On</td><td class="v">On</td>
</tr>

$ php-cgi -i -d allow_url_fopen=Off | grep allow_url_fopen
<tr><td class="e">allow_url_fopen</td><td class="v">Off</td><td 
class="v">Off</td></tr>
=============

php-fpm:
=============
$ php-fpm -i | grep allow_url_fopen
allow_url_fopen => On => On

$ php-fpm -i -d allow_url_fopen=Off | grep allow_url_fopen
allow_url_fopen => On => On
=============


Expected result:
----------------
php-fpm should allow to modify configuration entries from the command line. 
Otherwise there is no way to launch the interpreter without "daemonizing" it, for 
instance (which is required by web server like Cherokee).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2011-08-29 23:01 UTC] fat@php.net

-Status: Open +Status: Assigned -Assigned To: +Assigned To: fat

 [2011-10-09 14:36 UTC] fat@php.net

-Status: Assigned +Status: Closed

 [2011-10-09 14:36 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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.