diff options
Diffstat (limited to 'main/php_realpath.c')
-rw-r--r-- | main/php_realpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_realpath.c b/main/php_realpath.c index d60efa362c..66dfe5e9ca 100644 --- a/main/php_realpath.c +++ b/main/php_realpath.c @@ -251,7 +251,7 @@ char *php_realpath(char *path, char resolved_path []) { } /* Check if the resolved path is a directory */ - if (stat(path_construction, &filestat) != 0) return NULL; + if (V_STAT(path_construction, &filestat) != 0) return NULL; if (S_ISDIR(filestat.st_mode)) { /* It's a directory, append a / if needed */ if (*(writepos-1) != '/') { |