-
Notifications
You must be signed in to change notification settings - Fork 7.9k
FPM: php_value and php_admin_value entries are applied in reverse order [.phpt test included] #13249
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
Comments
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle PHP-FPM config includes ourselves, including variable expansion or globbing - neither was supported until mnow.
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these!
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these!
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these!
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these!
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these!
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these! GUS-W-14901875
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these! GUS-W-14901875
I'm aware of this and have got it on my list as one of the higher priorities. It might have some BC implications so might be potentially just for master. Here are some related issues already reported (not all of them are the same like this one):
|
Yup agreed re: the potential BC implications, so master seems reasonable. There is a suggestion in #8398 to make this configurable somehow; I don't think that's a good idea in terms of surface area of code to maintain in the future. But it did make me wonder for a moment... what should the behavior be for But I'd argue that, in those kind of environments, you probably don't want users to have any control whatsoever over So IMO, this should be fixed the same for |
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these! GUS-W-14901875
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these! GUS-W-14901875
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these! GUS-W-14901875
Turns out that bug which would not allow overriding of FPM config php_value settings in .user.ini was fixed in... PHP 7.2: https://bugs.php.net/bug.php?id=75212 Also, that behavior where a later declaration does not override a newer one is probably a bug: php/php-src#13249 We now use php-fpm -tt to dump the config, since that will have stuff printed in evaluation order - if the bug above ever gets fixed, we have to do nothing. This also removes the need for us to handle the PHP-FPM config include directives ourselves, and as a result, variable expansion and globbing now work in these! GUS-W-14901875
Uh oh!
There was an error while loading. Please reload this page.
Description
The following FPM config:
Resulted in this
php-fpm -tt
output:But I expected this output instead:
Note
This is not just cosmetic ordering in
php-fpm -tt
; the values are also applied in this order as INI directives, soini_get()
will return32M
andEurope/London
instead of the expected24M
andEurope/Paris
.PHPT:
Test log:
PHP Version
PHP 8.3.2
Operating System
No response
The text was updated successfully, but these errors were encountered: