Case-insensitive extension names in ini_get_all()
Under discussion; not accepted. The RFC page (version 1.0, status Under Discussion, last modified 2026-10-16 16:58 UTC) and the official RFC index both list it as under discussion. The proposed version is PHP 8.7. The page header gives its date as 2026-10-17, which is one day after the UTC date on which it was created and announced. The author announced the RFC on 2026-10-16 at 16:51 UTC. They wrote that voting "will start two weeks after if no further discussion emerged", so the earliest expected vote is around 30 October. No vote has been scheduled, and the implementation is listed as "TBD".
Proposal
According to the RFC, extension_loaded(), get_extension_funcs() and phpversion() already accept extension
names in any case, but ini_get_all() requires the lowercase name. ini_get_all('Pcre') raises an E_WARNING
and returns false. The RFC would resolve the $extension argument with ASCII case-insensitive matching,
whatever the current locale, for both values of $details. Then ini_get_all('Pcre') would return the same
result as ini_get_all('pcre').
Compatibility
Calls that differ only in capitalization from a loaded extension's name would succeed instead of warning and
returning false. Code that relies on that failure would behave differently. Calls that already succeed do not
change.
Ballot
One primary vote that needs a 2/3 majority. The poll on the page shows no votes and has no closing date.
History and limitations
- The change was first proposed as php-src PR #23293 and raised in a pre-RFC internals thread. A core developer had asked for it to be discussed on the list before it was merged. In that thread the author noted that it did not need to land for 8.6.
- The current
ini_get_all()behavior described above is the RFC's statement. It was not tested here. - The PR's state and the replies in the pre-RFC thread were not reviewed.
Related: 16 October 2026 digest.