diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-11-02 18:54:31 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-11-02 18:54:31 +0000 |
commit | ec3b50b8bb8555cb1f629a127e0f4be24686d391 (patch) | |
tree | c6c5302b2d00016de391f94f7513fc31db741fcb /ext/standard/string.c | |
parent | aa4bf3607bb4d2c2ca0c084c63d4876c158ba362 (diff) | |
download | php-git-ec3b50b8bb8555cb1f629a127e0f4be24686d391.tar.gz |
Revert previous dirname() patch.
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 449adbb805..3be7d77b7b 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1148,7 +1148,7 @@ PHPAPI void php_dirname(char *path, int len) } if (end < path) { /* The path only contained slashes */ - path[0] = '/'; + path[0] = DEFAULT_SLASH; path[1] = '\0'; return; } @@ -1169,7 +1169,7 @@ PHPAPI void php_dirname(char *path, int len) end--; } if (end < path) { - path[0] = '/'; + path[0] = DEFAULT_SLASH; path[1] = '\0'; return; } |