From: Sascha Schumann Date: Mon, 23 Sep 2002 14:59:24 +0000 (+0000) Subject: (PHP touch) Remove an extraneous time() call. X-Git-Tag: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7915f83342155e4d1fb726625c5751b1f1c0203d;p=php (PHP touch) Remove an extraneous time() call. Yasuo added this line in rev 1.90 for no apparent reason. --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index e184a30efd..f2ab01d8de 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -490,7 +490,6 @@ PHP_FUNCTION(touch) newtime->modtime = newtime->actime = time(NULL); } else if (ac == 2 && zend_get_parameters_ex(2, &filename, &filetime) != FAILURE) { convert_to_long_ex(filetime); - newtime->actime = time(NULL); newtime->modtime = newtime->actime = Z_LVAL_PP(filetime); } else if (ac == 3 && zend_get_parameters_ex(3, &filename, &filetime, &fileatime) != FAILURE) { convert_to_long_ex(fileatime);