From: Pierre Joye Date: Wed, 27 Jul 2011 12:20:32 +0000 (+0000) Subject: - do not resolve the link if all we want is to open that file X-Git-Tag: php-5.5.0alpha1~1693 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd06894b56f3842c9709457b75a4e8a2e707f7fa;p=php - do not resolve the link if all we want is to open that file --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 2c18044b33..f00127bc06 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -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; }