diff options
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; |