#24318 [Opn->Bgs]: basename failing on UNC paths
| From: | sniper@php.net | Date: | Thu, 26 Jun 2003 17:02:19 +0000 |
| Subject: | #24318 [Opn->Bgs]: basename failing on UNC paths | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42559@lists.php.net to get a copy of this message | ||
ID: 24318
Updated by: sniper@php.net
Reported By: axelr3 at btinternet dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows 2k
PHP Version: 4.3.2
New Comment:
\ is the real directory separator in windows. Not bug.
(And apache config has nothing to do with this)
Previous Comments:
------------------------------------------------------------------------
[2003-06-24 12:32:51] axelr3 at btinternet dot com
Description:
------------
All running on Windows 2k with Apache 1.3.27 where DocumentRoot in
Apache configuration was set to '//w2kserver/data/website/root'
<?php
$file = basename(__FILE__);
echo $file;
?>
$file was being set to '\\w2kserver\data\website\root\test.php'
Mapped the drive to N: so it now looks like 'n:/website/root' and
update the Apache config and $file is now 'test.php'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24318&edit=1