You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ini_parse_quantity() accepts invalid arguments as valid #11876
The "issue" is the call to ```ZEND_STRTOUL()``, this is part of the issue when introducing support for binary and octal prefixes in #9560
The whitespace and prefix is stripped away before passing it to the Cstrtoul() (or whatever platform-dependent function) which will also strip +, -, whitespace and a hex prefix (as this is the only one supported).
Activity
Girgias commentedon Aug 8, 2023
The "issue" is the call to ```ZEND_STRTOUL()``, this is part of the issue when introducing support for binary and octal prefixes in #9560
The whitespace and prefix is stripped away before passing it to the C
strtoul()(or whatever platform-dependent function) which will also strip+,-, whitespace and a hex prefix (as this is the only one supported).The warnings for:
are also a tad weird.
I don't really see a good way to fix this, but will try. @arnaud-lb what is your opinion on this? (well after you enjoyed your holiday)
Fix phpGH-11876: ini_parse_quantity() accepts invalid quantities
Fix GH-11876: ini_parse_quantity() accepts invalid quantities
Merge branch 'PHP-8.2' into PHP-8.3
Merge branch 'PHP-8.3'