Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Fix ini_get() for boolean values#29020
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ndench left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM 👍
| protectedfunctionsetUp() | ||
| { | ||
| if (!(ini_get('apc.enabled')&&ini_get('apc.enable_cli'))) { | ||
| if (!(\filter_var(ini_get('apc.enabled'), \FILTER_VALIDATE_BOOLEAN)&&\filter_var(ini_get('apc.enable_cli'), \FILTER_VALIDATE_BOOLEAN))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you please remove all the\ added in front offilter_var() andFILTER_VALIDATE_BOOLEAN in the PR?
We don't add these except for a specific short list of functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Ok, changed ;)
ro0NL commentedOct 30, 2018
See also
|
ro0NL commentedOct 30, 2018
oh wait.. i checked master :) AboutCommand would be for 3.4 |
deguif commentedOct 30, 2018
Yes, will do another PR which will target 3.4 after ;) |
deguif commentedOct 30, 2018
I'm also going to check every ini_get, I just focused on |
ro0NL commentedOct 30, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Cool :) i was curious if this applies to all boolean typed ini directives. I think it does 👍https://3v4l.org/aYsiU |
deguif commentedOct 30, 2018
Ok, just added
Not sure about |
fabpot commentedOct 31, 2018
Thank you@deguif. |
This PR was merged into the 2.8 branch.Discussion----------Fix ini_get() for boolean values| Q | A| ------------- | ---| Branch? | 2.8| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |Currently setting `false` or `off`, ... value to configure some PHP ini directives will make this evaluated to `true` as this is equal to a non empty string.Commits-------a153869 Fix ini_get() for boolean values
This PR was merged into the 3.4 branch.Discussion----------Fix ini_get() for boolean values| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |This follows#29020 for branch 3.4Commits-------65b34cb Fix ini_get() for boolean values
Uh oh!
There was an error while loading.Please reload this page.
Currently setting
falseoroff, ... value to configure some PHP ini directives will make this evaluated totrueas this is equal to a non empty string.