Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2eddb51

Browse filesBrowse 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
Copy full SHA for 2eddb51

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎src/Symfony/Component/HttpFoundation/Request.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Request.php
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.