[php-src] PR #21725: ext/standard: `parse_ini_{file,standard}` ValueError on invalid `$scanner_mode`
| From: | Ayesh | Date: | Sat, 11 Apr 2026 11:56:38 +0000 |
| Subject: | [php-src] PR #21725: ext/standard: `parse_ini_{file,standard}` ValueError on invalid `$scanner_mode` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35675@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21725
Author: Ayesh
Following the recent
ValueError improvements, this changes the
parse_ini_file and parse_ini_string functions throw a
ValueError exception when the $scanner_mode parameter is invalid.
The only allowed values now are:
- INI_SCANNER_NORMAL
- INI_SCANNER_RAW
- INI_SCANNER_TYPED