#36956 [Opn->Csd]: dirname returns \ for root /
| From: | vrana@php.net | Date: | Mon, 20 Aug 2007 12:21:29 +0000 |
| Subject: | #36956 [Opn->Csd]: dirname returns \ for root / | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377760@lists.php.net to get a copy of this message | ||
ID: 36956
Updated by: vrana@php.net
Reported By: e dot vandeoudeweetering at marcanti dot esprit-sg dot
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Windows 2000 (5.00.2195) SP4
PHP Version: 5.1.4
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
<?php
dirname('c:/x'); // returns 'c:\'
dirname('c:/Temp/x'); // returns 'c:/Temp'
dirname('/x'); // returns '\'
?>
Previous Comments:
------------------------------------------------------------------------
[2006-10-18 21:39:44] tony2001@php.net
Reclassified as docu problem.
------------------------------------------------------------------------
[2006-08-29 10:12:29] e dot vandeoudeweetering at marcanti dot
esprit-sg dot
Again the same results, this time with php:
C:\>php -v
PHP 5.1.6 (cli) (built: Aug 23 2006 16:35:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Results:
C:\>test.php
C:\Temp : C:\\Temp
C:/Temp : C:\/Temp
C:\ : C:\\C:
C:/ : C:\/C:
\\server\share : \\server\share
//server/share : //server/share
/usr/local : /usr/local
------------------------------------------------------------------------
[2006-05-22 06:45:45] e dot vandeoudeweetering at marcanti dot
esprit-sg dot
I used the latest release of php:
C:\phptemp>php -v
PHP 5.1.4 (cli) (built: May 4 2006 10:35:22)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Still the bad results:
C:\phptemp>test.php
C:\Temp : C:\\Temp
C:/Temp : C:\/Temp
C:\ : C:\\C:
C:/ : C:\/C:
\\server\share : \\server\share
//server/share : //server/share
/usr/local : /usr/local
------------------------------------------------------------------------
[2006-04-26 11:13:31] e dot vandeoudeweetering at marcanti dot
esprit-sg dot
I used:
C:\phptemp>php -v
PHP 5.1.3RC4-dev (cli) (built: Apr 26 2006 12:19:43)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
With the same result as before:
C:\phptemp>test.php
C:\Temp : C:\\Temp
C:/Temp : C:\/Temp
C:\ : C:\\C:
C:/ : C:\/C:
\\server\share : \\server\share
//server/share : //server/share
/usr/local : /usr/local
------------------------------------------------------------------------
[2006-04-10 12:01:39] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
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/36956
--
Edit this bug report at http://bugs.php.net/?id=36956&edit=1