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

 ID:               51595
 Updated by:       f...@php.net
 Reported by:      f...@php.net
 Summary:          passing ini settings via FASTCGI parameters
-Status:           Open
+Status:           Closed
 Type:             Feature/Change Request
 Package:          FPM related
 Operating System: any
 PHP Version:      trunk
-Assigned To:      
+Assigned To:      fat

 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/.
 
Thank you for the report, and for helping us make PHP better.

It's been commited in revision 298383



In fastcgi headers, only unique values can be passed. So you have to
concatenate 

differentes value in one and 

separate them with a new line character (\n).



For exemple in nginx, it could be done this way:



  set $php_value "pcre.backtrack_limit=424242";

  set $php_value "$php_value \n pcre.recursion_limit=99999";

  fastcgi_param  PHP_VALUE $php_value;



  fastcgi_param  PHP_ADMIN_VALUE "open_basedir=/var/www/htdocs";





In lighttpd, it seems there is no options to pass custom headers :/


Previous Comments:
------------------------------------------------------------------------
[2010-04-23 18:06:04] f...@php.net

Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&revision=298383
Log: Add PHP_VALUE and PHP_ADMIN_VALUE interpretation from fastcgi
headers.
It works as php_value and php_admin_value from the main conf file or
apache sapi.

See bug (request) #51595

------------------------------------------------------------------------
[2010-04-19 09:14:02] f...@php.net

thanks for the correction

------------------------------------------------------------------------
[2010-04-19 09:03:26] paj...@php.net

Change version, 5.3 does not have fpm.

------------------------------------------------------------------------
[2010-04-19 01:56:59] f...@php.net

Description:
------------
It would be cool to be able to define ini settings directly in the web
server 

(nginx, lighthttpd, apache) the same way it's possible for the apache
sapi 

(php_value, php_admin_value, ...)

Test script:
---------------
no test

Expected result:
----------------
nginx conf sample:



fastcgi_param PHP_VALUE sessions.save_path=/home/www/sessions/

fastcgi_param PHP_ADMIN_VALUE open_basedir=/home/www/docs

Actual result:
--------------
it doesn not exist


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



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

Reply via email to