-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
output_buffering check broken in sys information report #19784
Comments
See also PR #19612. |
But Isn't than |
Yes === 'off' is invalid (you are supposed to use If you try to set it to a text value
Both of the above will set output_buffering to '1' (output buffering enabled) Display: Please note also that this will enable output buffering ... despite being negative and having text at its end So correct detection is |
I do not mention it above but it is similar to On case
Both of the above will set output_buffering to '0' (output buffering disabled) Display: |
PR: #19791 Thanks for the report! |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/19784 |
Wrongly detected when
ini_get('output_buffering') === 'On'
any non numeric and text value means off (a misconfiguration)ini_get('output_buffering') === '0'
wrongly detected because we dohttps://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/models/sysinfo.php#L251
'output_buffering' => ($outputBuffering === 'On') ? true : is_numeric($outputBuffering),
aka we use
is_numeric($outputBuffering)
but is_numeric on '0' returns trueNumber 2 is most important, since 1 number is a misconfiguration although it may not be an uncommon misconfiguration
See comment
#19611 (comment)
The text was updated successfully, but these errors were encountered: