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

Skip to content

Why is not REQUEST_TIME_FLOAT set by default when constructing a Request object? #38019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
imanoleguskiza opened this issue Sep 1, 2020 · 1 comment

Comments

@imanoleguskiza
Copy link

When creating a Symfony\Component\HttpFoundation\Request object several server parameters are set, including REQUEST_TIME. However, the float equivalent REQUEST_TIME_FLOAT is not set. I tried looking for documentation about this to no avail. Is this intentional? Could we open a feature request to include it?

@xabbuh
Copy link
Member

xabbuh commented Sep 1, 2020

I can imagine that REQUEST_TIME_FLOAT wasn't a thing when the class was initially written (this field was added in PHP 5.4).

fabpot added a commit that referenced this issue Feb 5, 2021
…cting 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
@fabpot fabpot closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants