ID: 18710
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Closed
Bug Type: *Directory/Filesystem functions
Operating System: Windows 2000
PHP Version: 4.2.2
Previous Comments:
------------------------------------------------------------------------
[2002-08-02 14:18:02] [EMAIL PROTECTED]
dirname() in windows works inconsistently.
dirname("/a/b") returns "/a"
but dirname("/") returns "\"
This makes writing portable code which will work on Unix and Windows
problematic.
I've looked at ext/standard/string.c and I think the fix would be to
replace all occurrences of DEFAULT_SLASH with "/"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18710&edit=1