Edit report at https://bugs.php.net/bug.php?id=55533&edit=1

 ID:                 55533
 Updated by:         f...@php.net
 Reported by:        alvaro at alobbs dot com
 Summary:            The -d parameter doesn't work
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            FPM related
 Operating System:   All
 PHP Version:        5.3.8
-Assigned To:        
+Assigned To:        fat
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2011-08-29 22:02:03] 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).



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55533&edit=1

Reply via email to