Skip to content

Commit e7d106f

Browse files
committed
- do not resolve the link if all we want is to open that file
1 parent 7e0b627 commit e7d106f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/fopen_wrappers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, c
348348
}
349349
fp = VCWD_FOPEN(path, mode);
350350
if (fp && opened_path) {
351-
*opened_path = expand_filepath(path, NULL TSRMLS_CC);
351+
*opened_path = expand_filepath_with_mode(path, NULL, NULL, 0, CWD_EXPAND TSRMLS_CC);
352352
}
353353
return fp;
354354
}

0 commit comments

Comments
 (0)