Commit: 511b33ccdf290b4833dbaeff96df984abe157a47 Author: Dmitry Stogov <dmi...@zend.com> Mon, 18 Feb 2013 13:27:42 +0400 Parents: 40107aa6dac533695d1784f66f79683caaf6d3c8 Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=511b33ccdf290b4833dbaeff96df984abe157a47 Log: Avoid warning about possible precision loss Changed paths: M ZendAccelerator.c Diff: diff --git a/ZendAccelerator.c b/ZendAccelerator.c index 2fb8755..79eb7f4 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); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php