diff --git a/chapters/config.xml b/chapters/config.xml index 663333386d..a39c9dd16e 100644 --- a/chapters/config.xml +++ b/chapters/config.xml @@ -1,5 +1,5 @@ - + Runtime Configuration @@ -945,6 +945,11 @@ include_path = ".;c:\php\lib" PHP_EXTENSION_DIR PHP_INI_SYSTEM + + cgi.fix_pathinfo + "0" + PHP_INI_SYSTEM + cgi.force_redirect "1" @@ -1073,7 +1078,26 @@ include_path=".;c:\php\includes" - + + + + cgi.fix_pathinfo + boolean + + + + Provides real PATH_INFO/PATH_TRANSLATED + support for CGI. PHP's previous behaviour was to set + PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok what PATH_INFO + is. For more information on PATH_INFO, see the cgi specs. Setting + this to 1 will cause PHP CGI to fix it's paths to conform to the + spec. A setting of zero causes PHP to behave as before. Default + is zero. You should fix your scripts to use SCRIPT_FILENAME rather + than PATH_TRANSLATED. + + + + cgi.force_redirect