]> granicus.if.org Git - php/commitdiff
- do not resolve the link if all we want is to open that file
authorPierre Joye <pajoye@php.net>
Wed, 27 Jul 2011 12:20:32 +0000 (12:20 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 27 Jul 2011 12:20:32 +0000 (12:20 +0000)
main/fopen_wrappers.c

index 2c18044b33432a320226d2ee455c8efeea7e942d..f00127bc06570089bf2dd46b6233f71174d2dcd8 100644 (file)
@@ -348,7 +348,7 @@ static FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, c
        }
        fp = VCWD_FOPEN(path, mode);
        if (fp && opened_path) {
-               *opened_path = expand_filepath(path, NULL TSRMLS_CC);
+               *opened_path = expand_filepath_with_mode(path, NULL, NULL, 0, CWD_EXPAND TSRMLS_CC);
        }
        return fp;
 }