Re: [ZEND-ENGINE-CVS] cvs: TSRM / tsrm_virtual_cwd.c
| From: | Rasmus Lerdorf | Date: | Fri, 21 Mar 2008 15:46:22 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: TSRM / tsrm_virtual_cwd.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-6562@lists.php.net to get a copy of this message | ||
Antony Dovgal wrote:
tony2001 Fri Mar 21 12:07:15 2008 UTCExplain please. This seems like a step backwards. You are adding a system call here. -RasmusModified files: /TSRM tsrm_virtual_cwd.c Log:sync with 5_3 http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.119&r2=1.120&diff_format=u Index: TSRM/tsrm_virtual_cwd.c diff -u TSRM/tsrm_virtual_cwd.c:1.119 TSRM/tsrm_virtual_cwd.c:1.120 --- TSRM/tsrm_virtual_cwd.c:1.119 Mon Dec 31 07:12:06 2007 +++ TSRM/tsrm_virtual_cwd.c Fri Mar 21 12:07:14 2008 @@ -17,7 +17,7 @@+----------------------------------------------------------------------+*/ -/* $Id: tsrm_virtual_cwd.c,v 1.119 2007/12/31 07:12:06 sebastian Exp $ */ +/* $Id: tsrm_virtual_cwd.c,v 1.120 2008/03/21 12:07:14 tony2001 Exp $ */ #include <sys/types.h> #include <sys/stat.h> @@ -534,7 +534,7 @@ } if (use_cache) { - t = CWDG(realpath_cache_ttl)?sapi_get_request_time(TSRMLS_C):0; + t = CWDG(realpath_cache_ttl)?time(0):0; if ((bucket = realpath_cache_find(path, path_length, t TSRMLS_CC)) != NULL) { int len = bucket->realpath_len;