summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-11-06 17:14:21 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-11-06 17:14:21 +0000
commitf89effd2a83de2b1d6381f9b9403a8328e0998b6 (patch)
tree346940b3c9671b154de6f45a9afc1d0dc75f5c8c /main/php_variables.c
parentd31e4e7f8e78f0ed4497de9ef4a8f3461d2ed6b3 (diff)
downloadphp-git-f89effd2a83de2b1d6381f9b9403a8328e0998b6.tar.gz
Updated _SERVER['REQUEST_TIME'] to include microsecond precision.
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index f1744b111e..b8113a66da 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -590,8 +590,8 @@ static inline void php_register_server_variables(TSRMLS_D)
/* store request init time */
{
zval new_entry;
- Z_TYPE(new_entry) = IS_LONG;
- Z_LVAL(new_entry) = sapi_get_request_time(TSRMLS_C);
+ Z_TYPE(new_entry) = IS_DOUBLE;
+ Z_DVAL(new_entry) = sapi_get_request_time(TSRMLS_C);
php_register_variable_ex("REQUEST_TIME", &new_entry, array_ptr TSRMLS_CC);
}