#25047 [Asn->Fbk]: Trailing / does not work after PHP scripts in URL
ID: 25047
Updated by: sniper@php.net
Reported By: phpbugs at mike2k dot com
-Status: Assigned
+Status: Feedback
Bug Type: CGI related
Operating System: Redhat Linux 7.3
PHP Version: 4CVS, 5CVS
Assigned To: shane
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-08-12 09:23:15] sniper@php.net
This fastcgi mess is for Shane to fix, pure CGI works fine.
------------------------------------------------------------------------
[2003-08-12 09:19:49] phpbugs at mike2k dot com
i forgot to say in the note that it DID NOT work putting that in
php.ini and restarting it.
------------------------------------------------------------------------
[2003-08-12 09:19:01] phpbugs at mike2k dot com
i put
cgi.fix_pathinfo = 1
in my php.ini file.
the configure string i used is:
'./configure' '--with-mysql=/usr/local/mysql' '--enable-track-vars'
'--enable-shmop' '--with-zlib-dir=/usr' '--enable-inline-optimization'
'--disable-rpath' '--disable-debug' '--disable-ipv6'
'--enable-cli'
'--enable-fastcgi' '--with-gd' '--with-png-dir=/usr'
'--with-jpeg-dir=/usr' '--without-pear' '--enable-xslt'
'--with-xslt-sablot=/usr/local' '--with-msession'
'--disable-path-info-check'
will that disable-path-info-check mess with this?
should i be doing ANY --enable or --disable options to make this work
from the configure script command line?
also remember, i am not running apache - i am running php via fastcgi
on zeus webserver..
------------------------------------------------------------------------
[2003-08-12 08:47:51] sniper@php.net
Don't use --enable-discard-path and set cgi.fix_pathinfo=1
and it will work just fine. (tested within Apache)
------------------------------------------------------------------------
[2003-08-11 17:47:28] phpbugs at mike2k dot com
The error message is thrown around line 1508 of sapi/cgi/cgi_main.c
"if we are unable to open path_translated and we are not running from
shell (so fp == NULL), then fail."
Code should be changed or a feature should be added so it overrides
that behavior like it used to. It used to ignore everything past the
actual file itself - and pass that all as PATH_INFO and such.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25047
--
Edit this bug report at http://bugs.php.net/?id=25047&edit=1
Thread (9 messages)