1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 22:22:18 +02:00
Files
archived-php-src/Zend/tests
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
..
2021-07-20 12:05:46 +02:00
WS
2023-12-10 13:24:49 +01:00
2021-07-15 10:09:56 +02:00
2021-10-11 16:01:57 +02:00
2021-07-15 10:09:56 +02:00
2021-10-11 16:01:57 +02:00
2021-10-11 16:01:57 +02:00
2021-05-29 11:33:13 +02:00
2021-10-11 16:01:57 +02:00
2021-10-18 12:45:26 +02:00
2021-05-29 11:33:13 +02:00
2021-06-02 23:19:38 +02:00
2021-06-01 12:07:33 +02:00
2021-08-12 14:35:13 +02:00
2021-08-12 14:35:13 +02:00
2021-08-24 15:05:53 +02:00
2021-11-16 12:45:33 +01:00
2021-11-24 15:18:31 +01:00
2022-05-11 11:43:01 +03:00
2022-12-19 12:11:16 +03:00
2022-02-11 15:16:08 +03:00
2021-07-15 10:09:56 +02:00
2021-07-15 10:09:56 +02:00
2021-07-12 11:30:20 +02:00
2022-09-19 13:12:49 +03:00
2022-03-20 20:54:36 +01:00
2022-03-20 20:54:36 +01:00
2022-03-20 20:54:36 +01:00
2022-03-20 20:54:36 +01:00
2022-03-20 20:54:36 +01:00
2023-04-16 15:34:56 +02:00
2023-04-16 15:34:56 +02:00
2023-03-06 15:03:19 +01:00
2024-01-14 19:12:41 +01:00
2023-07-25 17:54:14 +02:00
2022-09-26 11:43:38 +03:00
2021-07-31 08:34:57 +02:00