#42699 [Asn->Fbk]: PHP_SELF duplicates path

From: Date: Fri, 21 Sep 2007 14:35:14 +0000
Subject: #42699 [Asn->Fbk]: PHP_SELF duplicates path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117757@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: Feedback 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: 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". Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2007-09-18 12:23:33] jani@php.net Dmitry, can you check this out please. ------------------------------------------------------------------------ [2007-09-18 11:22:00] vvv at colocall dot net I've tried php5.2-200709180830 before submitting the bug. I've got the same behavior as using php-5.2.4. ------------------------------------------------------------------------ [2007-09-18 10:51:34] vvv at colocall dot net Description: ------------ Path appears to be duplicated. The bug is absolutely the same as #42523, but not related to WinXP/IIS. Reproduce code: --------------- echo $_SERVER['PHP_SELF']; Expected result: ---------------- /path/test.php Actual result: -------------- /path/test.php/path/test.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42699&edit=1

« previous php.bugs (#117757) next »