Explorar el Código

Add REQUEST_TIME_FLOAT
compatible with php 5.4 and useful for benchmarks

Joanhey hace 6 años
padre
commit
001d8b13d6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Protocols/Http.php

+ 2 - 1
Protocols/Http.php

@@ -109,7 +109,8 @@ class Http
             'CONTENT_TYPE'         => '',
             'REMOTE_ADDR'          => '',
             'REMOTE_PORT'          => '0',
-            'REQUEST_TIME'         => \time()
+            'REQUEST_TIME'         => \time(),
+            'REQUEST_TIME_FLOAT'   => \microtime(true) //compatible php5.4
         );
 
         // Parse headers.