summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-07-27 12:20:32 +0000
committerPierre Joye <pajoye@php.net>2011-07-27 12:20:32 +0000
commite7d106f11d681ff2dd43a1341397a23e82909567 (patch)
tree8fb6e5f52a64406af087059029f50e17ef06e2d8
parent7e0b627b021640f0ffe7041b973961c99e1bd72a (diff)
downloadphp-git-e7d106f11d681ff2dd43a1341397a23e82909567.tar.gz
- do not resolve the link if all we want is to open that file
-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 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;
}