]> granicus.if.org Git - php/commitdiff
- Use PHP_CHDIR()
authorAndi Gutmans <andi@php.net>
Thu, 30 Mar 2000 22:39:29 +0000 (22:39 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 30 Mar 2000 22:39:29 +0000 (22:39 +0000)
main/fopen_wrappers.c

index 9ab09104e18928b51d129b20653fd02fbc2b0499..b2a6f1980a5f67ffc9bab41d84899c4abf31aaea 100644 (file)
@@ -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;