Security considerations when parsing user-provided INI strings and files
PHP provides parse_ini_string and parse_ini_file functions that reuse PHP’s built-in PHP parser it uses for PHP’s own INI-based configuration files. In addition to parsing the text, the INI parser supports