We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
PHP-FPM with clear_env = yes
clear_env = yes
<?php var_dump( filter_input( INPUT_SERVER, 'REQUEST_TIME_FLOAT' ) ); var_dump( $_SERVER['REQUEST_TIME_FLOAT'] ); var_dump( filter_input( INPUT_SERVER, 'REQUEST_TIME' ) ); var_dump( $_SERVER['REQUEST_TIME'] );
Resulted in this output:
NULL float(1737560728.0001) NULL int(1737560728)
But I expected this output instead:
NULL NULL NULL NULL
These are the only 2 documented in https://www.php.net/manual/en/reserved.variables.server.php with that behavior
The same also happens for HOME and USER for example
HOME
USER
It seems this is partially bc of php/php-src#17543 (comment)
Since php/php-src#17543 was marked not a bug, then this, which is the opposite case has to be a bug, otherwise it's completely arbitrary.
8.4
No response
The text was updated successfully, but these errors were encountered:
This is a doc issue because clear_env is just for clearing external environment variables.
Sorry, something went wrong.
No branches or pull requests
Description
Description
The following code:
PHP-FPM
with
clear_env = yes
Resulted in this output:
But I expected this output instead:
These are the only 2 documented in https://www.php.net/manual/en/reserved.variables.server.php with that behavior
The same also happens for
HOME
andUSER
for exampleIt seems this is partially bc of php/php-src#17543 (comment)
Since php/php-src#17543 was marked not a bug, then this, which is the opposite case has to be a bug, otherwise it's completely arbitrary.
PHP Version
8.4
Operating System
No response
The text was updated successfully, but these errors were encountered: