From 511b33ccdf290b4833dbaeff96df984abe157a47 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 18 Feb 2013 13:27:42 +0400 Subject: [PATCH] Avoid warning about possible precision loss --- ZendAccelerator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.50.1