summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-01-19 21:00:35 +0000
committerAntony Dovgal <tony2001@php.net>2007-01-19 21:00:35 +0000
commitd291b4351ef950e691579036cd3a772d1c0246a0 (patch)
tree77339beb491e93f7c8296b6c85c15a787ec1950a /TSRM
parent4c6e1df9e208d32060431140f13189ed14241c1d (diff)
downloadphp-git-d291b4351ef950e691579036cd3a772d1c0246a0.tar.gz
MFH
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_virtual_cwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index 07f39363cc..e590680e67 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -482,7 +482,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
path_length = orig_path_len;
}
- if (use_realpath && CWDG(realpath_cache_size_limit)) {
+ if (use_realpath != CWD_EXPAND && CWDG(realpath_cache_size_limit)) {
t = CWDG(realpath_cache_ttl)?time(NULL):0;
if ((bucket = realpath_cache_find(path, path_length, t TSRMLS_CC)) != NULL) {
int len = bucket->realpath_len;
@@ -502,7 +502,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
}
}
- if (use_realpath) {
+ if (use_realpath != CWD_EXPAND) {
#if !defined(TSRM_WIN32) && !defined(NETWARE)
char resolved_path[MAXPATHLEN];
@@ -609,7 +609,7 @@ no_realpath:
memcpy(&state->cwd[state->cwd_length], ptr, ptr_length+1);
#ifdef TSRM_WIN32
- if (use_realpath) {
+ if (use_realpath != CWD_EXPAND) {
WIN32_FIND_DATA data;
HANDLE hFind;
@@ -641,7 +641,7 @@ no_realpath:
}
}
- if (use_realpath && CWDG(realpath_cache_size_limit)) {
+ if (use_realpath != CWD_EXPAND && CWDG(realpath_cache_size_limit)) {
realpath_cache_add(path, path_length, state->cwd, state->cwd_length, t TSRMLS_CC);
}