summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-03-30 22:39:29 +0000
committerAndi Gutmans <andi@php.net>2000-03-30 22:39:29 +0000
commit72b57c66f096e1a16e865de808296bfffbf3c41b (patch)
treecf8ea7e4c665f1f5f897e078fd3b2b6aa5dae90e
parentf9547241d56b4b9b5ecc81600e21ab55854bc7ba (diff)
downloadphp-git-72b57c66f096e1a16e865de808296bfffbf3c41b.tar.gz
- Use PHP_CHDIR()
-rw-r--r--main/fopen_wrappers.c2
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;