#42699 [Asn->Csd]: PHP_SELF duplicates path
| From: | dmitry@php.net | Date: | Mon, 24 Sep 2007 11:44:57 +0000 |
| Subject: | #42699 [Asn->Csd]: PHP_SELF duplicates path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117800@lists.php.net to get a copy of this message | ||
ID: 42699
Updated by: dmitry@php.net
Reported By: vvv at colocall dot net
-Status: Assigned
+Status: Closed
Bug Type: CGI related
Operating System: FreeBSD 6.2, apache 2.2.6
PHP Version: 5.2CVS-2007-09-18
Assigned To: dmitry
New Comment:
This bug has been fixed in CVS.
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.
Previous Comments:
------------------------------------------------------------------------
[2007-09-24 10:39:22] jani@php.net
Dmitry, use --disable-path-info-check and you'll get the problem.
------------------------------------------------------------------------
[2007-09-24 08:14:33] vvv at colocall dot net
I've just reproduce it with the snapshot
http://snaps.php.net/php5.2-200709240630.tar.bz2
FreeBSD 6.2-RELEASE-p1
'./configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
'--program-prefix=' '--disable-path-info-check' '--with-regex=php'
'--with-zend-vm=CALL' '--disable-ipv6' '--prefix=/usr/local'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'
------------------------------------------------------------------------
[2007-09-21 14:35:13] dmitry@php.net
I cannot reproduce it:
Linux 2.6.22, glibc 2.6
'../configure' '--prefix=/home/dmitry/php/usr/php5.2-debug'
'--with-config-file-path=/home/dmitry/php/usr/php5.2-debug/etc'
'--enable-force-cgi-redirect' '--enable-fastcgi' '--enable-pic'
'--enable-debug' '--enable-memory-limit' '--disable-rpath'
'--with-regex=php' '--with-zlib' '--with-layout=GNU'
'--enable-magic-quotes' '--enable-track-vars'
'--disable-path-info-check'
Request to http://127.0.0.1/test/phpinfo.php gives
_SERVER["PHP_SELF"]
== "/test/phpinfo.php".
------------------------------------------------------------------------
[2007-09-19 11:43:48] vvv at colocall dot net
The problem has gone after recompiling without
--disable-path-info-check.
FreeBSD port applies this option by default.
------------------------------------------------------------------------
[2007-09-19 02:01:33] w dot ashcroft at redfoxuk dot com
I noticed the bug fix for #42523 was a specific workaround for when the
server software CGI variable was set as Microsoft-IIS; so clearly the
"hack" fix for #42523 needs to be done properly if it doesn't fix the
problem completely.
------------------------------------------------------------------------
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/42699
--
Edit this bug report at http://bugs.php.net/?id=42699&edit=1