]> granicus.if.org Git - php/commitdiff
http://bugs.php.net/bug.php?id=23800
authorShane Caraveo <shane@php.net>
Sun, 25 May 2003 18:35:18 +0000 (18:35 +0000)
committerShane Caraveo <shane@php.net>
Sun, 25 May 2003 18:35:18 +0000 (18:35 +0000)
change the default for those who cannot
this was actually done a long time ago, but got reverted along the way

php.ini-dist
php.ini-recommended
sapi/cgi/cgi_main.c

index 358db2aa1d890e1254f387382e70e9d8b7a63695..3e2958561e0dad7313b8a88b0137c1e694b42685 100644 (file)
@@ -444,6 +444,14 @@ enable_dl = On
 ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
 ; cgi.redirect_status_env = ;
 
+; cgi.fix_pathinfo 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.fix_pathinfo=0
+
 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
 ; security tokens of the calling client.  This allows IIS to define the
 ; security context that the request runs under.  mod_fastcgi under Apache
index 89c60df5d7870b0d584afaa6ab7788166efc022a..b801ea255142ed3559c20393503fe547060580bd 100644 (file)
@@ -459,6 +459,14 @@ enable_dl = On
 ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
 ; cgi.redirect_status_env = ;
 
+; cgi.fix_pathinfo 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.fix_pathinfo=1
+
 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
 ; security tokens of the calling client.  This allows IIS to define the
 ; security context that the request runs under.  mod_fastcgi under Apache
index 71c3f57920323d23a8de998db66ea3f0d985d51a..16b4b136c0ab3ed9e671ed09f423b61818f9e3c2 100644 (file)
@@ -1062,7 +1062,7 @@ consult the installation file that came with this distribution, or visit \n\
 
 #if ENABLE_PATHINFO_CHECK
        if (cfg_get_long("cgi.fix_pathinfo", &fix_pathinfo) == FAILURE) {
-               fix_pathinfo = 1;
+               fix_pathinfo = 0;
        }
 #endif