php-src/ext/mbstring
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
..
libmbfl PHP_HAVE_BUILTIN_USUB_OVERFLOW macro is defined even if __builtin_usub_overflow not available 2023-10-23 14:05:48 +01:00
tests Fix bug in mb_get_substr_slow (sometimes outputs wrong number of characters) 2023-12-20 14:32:53 +02:00
ucgendat Optimize mb_str{,im}width for performance 2021-09-29 18:19:01 +02:00
common_codepoints.txt Improve mb_detect_encoding accuracy for text containing vowels with macrons 2023-08-25 12:09:55 +02:00
config.m4 Combine CJK encoding conversion code in a single source file 2023-05-20 21:27:48 -07:00
config.w32 Combine CJK encoding conversion code in a single source file 2023-05-20 21:27:48 -07:00
CREDITS
gen_rare_cp_bitvec.php Mark globals as const (#10303) 2023-01-23 13:46:58 +00:00
mb_gpc.c Take order of candidate encodings into account when guessing text encoding 2023-05-16 07:01:07 -07:00
mb_gpc.h Remove unused 'to_language' and 'from_language' struct fields 2022-08-16 16:43:26 +02:00
mbstring.c Do not allow zend.script_encoding to be set to 'pass' 2024-01-21 14:51:54 +02:00
mbstring.h Take order of candidate encodings into account when guessing text encoding 2023-05-16 07:01:07 -07:00
mbstring.stub.php Merge branch 'PHP-8.2' into PHP-8.3 2023-11-27 21:13:21 +02:00
mbstring_arginfo.h Merge branch 'PHP-8.2' into PHP-8.3 2023-11-27 21:13:21 +02:00
php_mbregex.c Reduce memory allocated by var_export, json_encode, serialize, and other (#8902) 2022-07-08 14:47:46 +02:00
php_mbregex.h Declare ext/mbstring constants in stubs (#8798) 2022-06-23 17:34:08 +02:00
php_onig_compat.h
php_unicode.c Implement conditional casing for Greek letter sigma when title-casing text 2023-01-12 17:41:11 +02:00
php_unicode.h Speed boost for mb_stripos (when not using UTF-8) 2022-12-18 15:31:20 +02:00
rare_cp_bitvec.h Improve mb_detect_encoding accuracy for text containing vowels with macrons 2023-08-25 12:09:55 +02:00
unicode_data.h Update Unicode tables to 14.0.0 2021-09-20 09:58:20 +02:00