php-src/Zend/tests/multibyte
Alex Dowad 1e92d47f41 Do not allow zend.script_encoding to be set to 'pass'
When investigating another bug reported by GitHub user 'tstangner',
I discovered that PHP segfaults when the INI parameter
zend.script_encoding is set to "pass". This bug dates back to
December 2022 (caused by yours truly in 953864661a).

If any PHP users in the wild were actually setting zend.script_encoding
to "pass" (which would be an utterly useless thing to do), I expect that
someone would have filed a bug report by now. The absence of such bug
reports is evidence that nobody is doing this.

Hence, it seems that the best fix is simply to disallow "pass" as a
choice for zend.script_encoding. The internal function
'php_mb_zend_encoding_list_parser' which I am modifying to accomplish
this has no other in-tree callers, aside from the 'exif' extension.
Further, exif only calls the function with a few hard-coded values, and
none of them are the string "pass", so this change will not have any
impact on exif.
2024-01-21 14:51:54 +02:00
..
bug68665.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
multibyte_encoding_001.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
multibyte_encoding_002.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
multibyte_encoding_003.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
multibyte_encoding_004.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
multibyte_encoding_005.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
multibyte_encoding_006.phpt Remove useless skip check 2020-01-15 18:38:15 +01:00
multibyte_encoding_007.phpt Do not allow zend.script_encoding to be set to 'pass' 2024-01-21 14:51:54 +02:00