php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
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: alvaro at alobbs dot com
New email:
PHP Version: OS:

 

 [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:35 UTC] fat@php.net
Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=317936
Log: - Fixed bug #55533 (The -d parameter doesn't work)
 [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.


 [2012-04-18 09:48 UTC] laruence@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d24cd92a22131a613e8140020020da5458506013
Log: - Fixed bug #55533 (The -d parameter doesn't work)
 [2012-07-24 23:39 UTC] rasmus@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d24cd92a22131a613e8140020020da5458506013
Log: - Fixed bug #55533 (The -d parameter doesn't work)
 [2013-11-17 09:36 UTC] laruence@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d24cd92a22131a613e8140020020da5458506013
Log: - Fixed bug #55533 (The -d parameter doesn't work)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC