diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2007-05-18 11:36:55 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2007-05-18 11:36:55 +0000 |
commit | 7e5f0a8380ca26bf7950873aab733c0816d83d07 (patch) | |
tree | e5e1d6769d5e04e86e3c7cc458be40eed294fda4 /TSRM | |
parent | ffd09c0961ce3256d68dd61e230ba8484e73e36e (diff) | |
download | php-git-7e5f0a8380ca26bf7950873aab733c0816d83d07.tar.gz |
Get rid of a stray time() syscall in tsrm and clean up lcg rinit
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index ccb7ea553c..a7d1d59722 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -31,6 +31,7 @@ #include "tsrm_virtual_cwd.h" #include "tsrm_strtok_r.h" +#include "SAPI.h" #ifdef TSRM_WIN32 #include <io.h> @@ -518,7 +519,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func } if (use_cache) { - t = CWDG(realpath_cache_ttl)?time(NULL):0; + t = CWDG(realpath_cache_ttl)?sapi_get_request_time(TSRMLS_C):0; if ((bucket = realpath_cache_find(path, path_length, t TSRMLS_CC)) != NULL) { int len = bucket->realpath_len; |