diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-11 10:42:55 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-11 15:01:16 +0100 |
commit | 070e24d7a91a49fce56b5ee4d5a102d022d3e724 (patch) | |
tree | d9bd7c9fbf0cba6b62a7f37f5d24ecf2320f90e0 /sapi/apache2handler/php_functions_arginfo.h | |
parent | dcf389228c9f1f65da9983226cfe5e6ca6904298 (diff) | |
download | php-git-070e24d7a91a49fce56b5ee4d5a102d022d3e724.tar.gz |
Allow all scalar types in ini_set()
This changes ini_set() to accept all scalar types
(string|int|float|bool|null) for the new value. The idea here is
that while the INI system ultimately works with strings, its value
interpretation is designed to be consistent with PHP's casting rules,
e.g. "1" and "" are interpreted as boolean true and false respectively.
I personally believe that writing ini_set('precision', 10) makes more
sense than ini_set('precision', '10'), and find strict_types to be
unnecessarily pedantic here.
Closes GH-6680.
Diffstat (limited to 'sapi/apache2handler/php_functions_arginfo.h')
0 files changed, 0 insertions, 0 deletions