summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-11-05 14:50:17 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-11-05 14:50:17 +0000
commitcfe0c82034e5ed8de3df373eab4a5545be688141 (patch)
treecfc0feec4038b63df74ee37c10fef5b0cc482524 /main/fopen_wrappers.c
parent177b24a44ee3b0ff39889a1ef1f896edf559a389 (diff)
downloadphp-git-cfe0c82034e5ed8de3df373eab4a5545be688141.tar.gz
Added 4th argument to virtual_file_ex() that specifies whether or not
realpath() should be used during path resolving. In a number of functions we do not want to use realpath(), since realpath() will resolve symlinks.
Diffstat (limited to 'main/fopen_wrappers.c')
-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 b5abebbca3..fe0174126f 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -536,7 +536,7 @@ PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC)
new_state.cwd = strdup(cwd);
new_state.cwd_length = strlen(cwd);
- if(virtual_file_ex(&new_state, filepath, NULL)) {
+ if(virtual_file_ex(&new_state, filepath, NULL, 1)) {
free(new_state.cwd);
return NULL;
}