Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2eddb51

Browse files
committed
bug #40043 [HttpFoundation] Setting REQUEST_TIME_FLOAT when constructing a Request object (ctasada)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] Setting `REQUEST_TIME_FLOAT` when constructing a Request object | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #38019 | License | MIT | Doc PR | - When creating a new Request object `REQUEST_TIME_FLOAT` was not set by default. Replaces broken 39952 PR :( Commits ------- c52c1e0 [HttpFoundation] Setting `REQUEST_TIME_FLOAT` when constructing a Request object
2 parents 1542bbb + c52c1e0 commit 2eddb51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ public static function create($uri, $method = 'GET', $parameters = [], $cookies
333333
'SCRIPT_FILENAME' => '',
334334
'SERVER_PROTOCOL' => 'HTTP/1.1',
335335
'REQUEST_TIME' => time(),
336+
'REQUEST_TIME_FLOAT' => microtime(true),
336337
], $server);
337338

338339
$server['PATH_INFO'] = '';

0 commit comments

Comments
 (0)