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;
}
}
- if (use_realpath) {
+ if (use_realpath != CWD_EXPAND) {
#if !defined(TSRM_WIN32) && !defined(NETWARE)
char resolved_path[MAXPATHLEN];
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;
}
}
- 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);
}