summaryrefslogtreecommitdiff
path: root/main/php_realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_realpath.c')
-rw-r--r--main/php_realpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/php_realpath.c b/main/php_realpath.c
index b134b3fce3..d60efa362c 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 (PHP_GETCWD(path_construction, MAXPATHLEN-1) == NULL) {
+ if (V_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 (PHP_GETCWD(path_construction, MAXPATHLEN-1) == NULL) {
+ if (V_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 (PHP_GETCWD(path_construction, MAXPATHLEN-1) == NULL) {
+ if (V_GETCWD(path_construction, MAXPATHLEN-1) == NULL) {
/* Unable to get cwd */
resolved_path[0] = 0;
return NULL;