Re: [ZEND-ENGINE-CVS] cvs: TSRM / tsrm_virtual_cwd.c
[email protected] (Rasmus Lerdorf)
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <[email protected]> |
Antony Dovgal wrote:
> tony2001 Fri Mar 21 12:07:15 2008 UTC
>
> Modified 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;
Explain please. This seems like a step backwards. You are adding a
system call here.
-Rasmus