svn: /php/php-src/trunk/main/ php_variables.c
| From: | Patrick Allaert | Date: | Fri, 06 Jan 2012 13:37:51 +0000 |
| Subject: | svn: /php/php-src/trunk/main/ php_variables.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67410@lists.php.net to get a copy of this message | ||
patrickallaert Fri, 06 Jan 2012 13:37:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321827
Log:
Changed: restoring REQUEST_TIME as a long, introducing REQUEST_TIME_FLOAT instead as discussed on
the ML
Changed paths:
U php/php-src/trunk/main/php_variables.c
Modified: php/php-src/trunk/main/php_variables.c
===================================================================
--- php/php-src/trunk/main/php_variables.c 2012-01-06 10:34:31 UTC (rev 321826)
+++ php/php-src/trunk/main/php_variables.c 2012-01-06 13:37:51 UTC (rev 321827)
@@ -581,10 +581,13 @@
}
/* store request init time */
{
- zval new_entry;
- 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);
+ zval request_time_float, request_time_long;
+ Z_TYPE(request_time_float) = IS_DOUBLE;
+ Z_DVAL(request_time_float) = sapi_get_request_time(TSRMLS_C);
+ php_register_variable_ex("REQUEST_TIME_FLOAT", &request_time_float, array_ptr
TSRMLS_CC);
+ Z_TYPE(request_time_long) = IS_LONG;
+ Z_LVAL(request_time_long) = zend_dval_to_lval(Z_DVAL(request_time_float));
+ php_register_variable_ex("REQUEST_TIME", &request_time_long, array_ptr TSRMLS_CC);
}
}