#43403 [Asn]: $_SERVER['PHP_SELF'] gives incorrect value
| From: | postmaster at itsacon dot net | Date: | Mon, 26 Nov 2007 13:51:18 +0000 |
| Subject: | #43403 [Asn]: $_SERVER['PHP_SELF'] gives incorrect value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120088@lists.php.net to get a copy of this message | ||
ID: 43403
User updated by: postmaster at itsacon dot net
Reported By: postmaster at itsacon dot net
Status: Assigned
Bug Type: CGI related
Operating System: Windows XP Pro 64bit
PHP Version: 5.2.5
Assigned To: dmitry
New Comment:
Yeah server is slow as hell. Seems to be the combination of PHP 32 bit
on a 64 bit Windows, HTML files parse at normal speed.
Server is Xitami 2.5c2 (32 bit)
Problem looks a bit like bug 43030
(http://bugs.php.net/bug.php?id=43030), only now just the path is
duplicated. That bug concerns Windows 2003, which uses roughly the same
kernel as XP 64 bit, so they might be related.
Hope this helps.
(PS: unrelated, but are there plans to release 64 bit Windows binaries
in the future?)
Previous Comments:
------------------------------------------------------------------------
[2007-11-26 11:46:26] jani@php.net
I missed the phpinfo() url. And it's slow as hell so pasting the
relevant info here: Server API CGI/FastCGI
Dmitry, something missed in fixing this?
------------------------------------------------------------------------
[2007-11-26 11:44:54] jani@php.net
What SAPI are you using? CGI or something else?
------------------------------------------------------------------------
[2007-11-26 11:19:32] postmaster at itsacon dot net
Upgrading to latest CVS snapshow (5.2.6-dev) does NOT solve the
problem. See scripts in bug report, path is still repeated at end of
PHP_SELF value.
------------------------------------------------------------------------
[2007-11-25 22:28:29] postmaster at itsacon dot net
Description:
------------
In directories below document root, PHP_SELF returns an incorrect value
(path repeated at end of string)
Reproduce code:
---------------
/* Place this code in a SUBDIRECTORY (such as
localhost/testdir/test.php */
<?php
echo $_SERVER['PHP_SELF'];
?>
/* or see http://www2.bijscharp.nl/bugdemo/winxp64_php_self.php
(script contains code above)
For info on server, see http://www2.bijscharp.nl/bugdemo/phpinfo.php
*/
Expected result:
----------------
The result should be:
/bugdemo/winxp64_php_self.php
Actual result:
--------------
The result is:
bugdemo/winxp64_php_self.php/bugdemo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43403&edit=1