From: Dmitry Stogov Date: Mon, 18 Feb 2013 09:27:42 +0000 (+0400) Subject: Avoid warning about possible precision loss X-Git-Tag: php-5.5.0beta1~42^2~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=511b33ccdf290b4833dbaeff96df984abe157a47;p=php Avoid warning about possible precision loss --- diff --git a/ZendAccelerator.c b/ZendAccelerator.c index 2fb87551aa..79eb7f4a34 100644 --- a/ZendAccelerator.c +++ b/ZendAccelerator.c @@ -1847,7 +1847,8 @@ static void accel_activate(void) } SHM_UNPROTECT(); - ZCG(request_time) = sapi_get_request_time(TSRMLS_C); + /* PHP-5.4 and above return "double", but we use 1 sec precision */ + ZCG(request_time) = (time_t)sapi_get_request_time(TSRMLS_C); ZCG(cache_opline) = NULL; ZCG(cache_persistent_script) = NULL; ZCG(include_path_check) = !ZCG(include_path_key);