diff options
-rw-r--r-- | main/fopen_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 9ab09104e1..b2a6f1980a 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -298,7 +298,7 @@ PHPAPI FILE *php_fopen_primary_script(void) temp = estrdup(fn); php_dirname(temp, strlen(temp)); if (*temp) { - chdir(temp); + PHP_CHDIR(temp); } efree(temp); SG(request_info).path_translated = fn; |