int ret;
int use_cache;
int use_relative_path = 0;
+#ifdef TSRM_WIN32
+ int is_unc;
+#endif
TSRMLS_FETCH();
use_cache = ((use_realpath != CWD_EXPAND) && CWDG(realpath_cache_size_limit));
char *ptr, *path_copy, *free_path;
char *tok;
int ptr_length;
-#ifdef TSRM_WIN32
- int is_unc;
-#endif
no_realpath:
#ifdef TSRM_WIN32
}
}
+ /* Store existent file in realpath cache. */
+#ifdef TSRM_WIN32
+ if (use_cache && !is_unc) {
+#else
if (use_cache && (use_realpath == CWD_REALPATH)) {
+#endif
realpath_cache_add(path, path_length, state->cwd, state->cwd_length, t TSRMLS_CC);
}