#41817 [Asn->Fbk]: CGI Trailing slash is still not correct!
| From: | dmitry@php.net | Date: | Mon, 02 Jul 2007 09:15:48 +0000 |
| Subject: | #41817 [Asn->Fbk]: CGI Trailing slash is still not correct! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114526@lists.php.net to get a copy of this message | ||
ID: 41817
Updated by: dmitry@php.net
Reported By: progcom at gmail dot com
-Status: Assigned
+Status: Feedback
Bug Type: CGI related
Operating System: FreeBSD
PHP Version: 5CVS-2007-06-27 (CVS)
Assigned To: dmitry
New Comment:
I still not able to reproduce buggy behavior nor with Apache 1.3
neither with Apavhe 2.2. vtw I do my tests on Linux.
You have a typo in your config "lcal" instead of "local". I would also
recomend simpler configuration.
FastCgiServer /usr/local/www/php-bin/php-cgi
Alias /php-bin /usr/local/www/php-bin
Action application/x-httpd-php /php-bin/php-cgi
AddType application/x-httpd-php .php
After all it seems for me like FreeBSD realpath() bug.
Please try the following patch http://phpfi.com/246574
Previous Comments:
------------------------------------------------------------------------
[2007-06-29 03:31:01] progcom at gmail dot com
Yes, runs php-cgi, not php(cli version).
------------------------------------------------------------------------
[2007-06-28 20:10:43] sniper@php.net
And you're absolutely sure your scripts point to the right binary?
(it was renamed to be php-cgi in 5.2.3)
------------------------------------------------------------------------
[2007-06-28 10:30:56] progcom at gmail dot com
Yes, I use apache 2.2.4 with mod_fastcgi 2.4.2, setup by FreeBSD ports.
Here is my httpd.conf:
FastCgiServer /usr/local/www/php-bin/php-cgi
Alias /php-bin /usr/lcal/www/php-bin
Action php-fastcgi /php-bin/php-cgi
AddHandler php-fastcgi .php
AddType application/x-httpd-php .php
<Location /php-bin>
SetHandler php-fastcgi
</Location>
------------------------------------------------------------------------
[2007-06-28 10:09:29] dmitry@php.net
I was never able to reproduce this trailing slash problem.
Do you user apache with mod_fastcgi or something else?
Could you provide your FasrtCGI configuration?
------------------------------------------------------------------------
[2007-06-27 04:55:31] progcom at gmail dot com
Description:
------------
This is same bug as #40419, so I tried CVS version, but problem is
still occured.
Request with trailing slash, PHP doen't set any PATH_INFO or
PATH_TRANSLATED.
Reproduce code:
---------------
http://www.foo.com/bar.php/
Expected result:
----------------
$_SERVER['PATH_INFO'] = "/"
$_SERVER['PATH_TRANSLATED'] = "/blahblah/bar.php/"
Actual result:
--------------
$_SERVER['PATH_INFO'] = NULL
$_SERVER['PATH_TRANSLATED'] = NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41817&edit=1