summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-11-02 18:54:31 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-11-02 18:54:31 +0000
commitec3b50b8bb8555cb1f629a127e0f4be24686d391 (patch)
treec6c5302b2d00016de391f94f7513fc31db741fcb /ext/standard/string.c
parentaa4bf3607bb4d2c2ca0c084c63d4876c158ba362 (diff)
downloadphp-git-ec3b50b8bb8555cb1f629a127e0f4be24686d391.tar.gz
Revert previous dirname() patch.
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c4
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;
}