php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch patch-sapi-apache2filter-sapi_apache2.c for Apache2 related Bug #62507

Patch version 2012-07-08 13:30 UTC

Return to Bug #62507 | Download this patch
Patch Revisions:

Developer: theultramage@gmail.com

--- sapi/apache2filter/sapi_apache2.c.orig	2012-06-13 06:54:24.000000000 +0200
+++ sapi/apache2filter/sapi_apache2.c	2012-07-08 14:59:14.512500000 +0200
@@ -311,7 +311,7 @@
 static double php_apache_sapi_get_request_time(TSRMLS_D)
 {
 	php_struct *ctx = SG(server_context);
-	return apr_time_as_msec(ctx->r->request_time);
+	return ((double) apr_time_as_msec(ctx->r->request_time)) / 1000.0;
 }
 
 extern zend_module_entry php_apache_module;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 06:01:30 2024 UTC