From:             
Operating system: All
PHP version:      5.3.8
Package:          FPM related
Bug Type:         Bug
Bug description:The -d parameter doesn't work

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 bug report at https://bugs.php.net/bug.php?id=55533&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55533&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55533&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55533&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55533&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55533&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55533&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55533&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55533&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55533&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55533&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55533&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55533&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55533&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55533&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55533&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55533&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55533&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55533&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55533&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55533&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55533&r=mysqlcfg

Reply via email to