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: Assigned +Status: Closed Type: Bug Package: FPM related Operating System: All PHP Version: 5.3.8 Assigned To: fat Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2011-10-09 14:35:48] f...@php.net Automatic comment from SVN on behalf of fat Revision: http://svn.php.net/viewvc/?view=revision&revision=317936 Log: - Fixed bug #55533 (The -d parameter doesn't work) ------------------------------------------------------------------------ [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