diff options
author | Andi Gutmans <andi@php.net> | 2000-03-30 22:38:50 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-03-30 22:38:50 +0000 |
commit | f9547241d56b4b9b5ecc81600e21ab55854bc7ba (patch) | |
tree | 53935b78b78b28ab6529137e6a5ee26b35d7e7a2 /main/php_realpath.c | |
parent | 69a16e9693ab9dee17f97926f256137f9203e571 (diff) | |
download | php-git-f9547241d56b4b9b5ecc81600e21ab55854bc7ba.tar.gz |
- Fix another bug in session.c
- Start using the new PHP_GETCWD() and co. macros
Diffstat (limited to 'main/php_realpath.c')
-rw-r--r-- | main/php_realpath.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/php_realpath.c b/main/php_realpath.c index 9ced9b4030..b134b3fce3 100644 --- a/main/php_realpath.c +++ b/main/php_realpath.c @@ -63,7 +63,7 @@ char *php_realpath(char *path, char resolved_path []) { if ((*workpos == '\\') || (*workpos == '/')) { /* We start at the root of the current drive */ /* Get the current directory */ - if (getcwd(path_construction, MAXPATHLEN-1) == NULL) { + if (PHP_GETCWD(path_construction, MAXPATHLEN-1) == NULL) { /* Unable to get cwd */ resolved_path[0] = 0; return NULL; @@ -79,7 +79,7 @@ char *php_realpath(char *path, char resolved_path []) { workpos++; } else { /* Use the current directory */ - if (getcwd(path_construction, MAXPATHLEN-1) == NULL) { + if (PHP_GETCWD(path_construction, MAXPATHLEN-1) == NULL) { /* Unable to get cwd */ resolved_path[0] = 0; return NULL; @@ -94,7 +94,7 @@ char *php_realpath(char *path, char resolved_path []) { workpos++; } else { /* Use the current directory */ - if (getcwd(path_construction, MAXPATHLEN-1) == NULL) { + if (PHP_GETCWD(path_construction, MAXPATHLEN-1) == NULL) { /* Unable to get cwd */ resolved_path[0] = 0; return NULL; |