#25450 [Opn->Bgs]: dirname() not working correct
| From: | sniper@php.net | Date: | Tue, 09 Sep 2003 19:49:35 +0000 |
| Subject: | #25450 [Opn->Bgs]: dirname() not working correct | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47341@lists.php.net to get a copy of this message | ||
ID: 25450
Updated by: sniper@php.net
Reported By: robert_hunter21 at yahoo dot co dot uk
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: windows 2000
PHP Version: 4.3.3
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.
Thank you for your interest in PHP.
See bug #25448
Previous Comments:
------------------------------------------------------------------------
[2003-09-09 14:20:07] roberthunter21 at yahoo dot co dot uk
This seems to be just specific to the xitami server because I just
finished testing it on IIS and it works.
------------------------------------------------------------------------
[2003-09-09 11:45:14] robert_hunter21 at yahoo dot co dot uk
The test webserver I am running it on is xitami.
redirect.php is my file which generates the error, the url for that
file is -
http://localhost/test/redirect.php
So it should output- /test
in 4.3.0
echo $_SERVER['PHP_SELF'];
outputs- /test
so that is correct, but
in 4.3.3
echo $_SERVER['PHP_SELF'];
outputs- \
------------------------------------------------------------------------
[2003-09-09 11:43:47] robert_hunter21 at yahoo dot co dot uk
The test webserver I am running it on is xitami.
redirect.php is my file which generates the error, the url for that
file is -
http://localhost/test/redirect.php
So it should output- /test
in 4.3.0
'echo $_SERVER['PHP_SELF'];
outputs- /test
so that is correct, but
in 4.3.3
'echo $_SERVER['PHP_SELF'];
outputs- \
------------------------------------------------------------------------
[2003-09-09 11:21:27] sniper@php.net
What SAPI are you using? (what webserver?)
What does 'echo $_SERVER['PHP_SELF'];' output?
------------------------------------------------------------------------
[2003-09-09 09:53:32] robert_hunter21 at yahoo dot co dot uk
Description:
------------
After updating to version 4.3.3 dirname() is not working properly (or
the same as in 4.3.0 at least).
dirname($_SERVER['PHP_SELF']) does not give directory path.
Reproduce code:
---------------
<?
echo dirname($_SERVER['PHP_SELF']);
?>
Expected result:
----------------
/test
Actual result:
--------------
\
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25450&edit=1