1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 13:12:16 +02:00
Files
archived-php-src/ext
Denis Ryabov b456ae8d34 Restore Warning instead of Fatal Error in gd_webp.c
According to the docs (https://www.php.net/manual/en/function.imagecreatefromwebp.php and https://www.php.net/manual/en/function.imagewebp.php), `false` should be returned on errors (similar to other functions of the `gd` extension), but actually all errors result in a `Fatal Error`. It doesn't look normal when trying to read an empty file or a file in the wrong format causes the program to stop. The problem seems to be related to a mega-patch that replaced `zend_error` with `zend_error_noreturn` almost everywhere. My patch fixes this behavior by switching from `zend_error_noerror` to `gd_error` (i.e. to `E_WARNING` level). All necessary memory cleanup is already in the code (as it was before the "zend_error_noreturn" patch).

Close GH-13774
2024-07-13 16:58:54 +01:00
..
2023-09-26 21:44:00 +02:00
2024-02-19 15:18:48 +01:00
2023-11-22 20:39:29 -06:00
2023-01-19 14:13:34 +00:00
2023-07-10 13:34:21 +02:00
2023-05-13 18:53:35 +01:00
2022-12-16 14:37:39 +01:00
2024-05-17 13:08:42 +02:00
2024-01-04 19:26:32 +01:00
2024-07-03 19:17:13 +02:00
2023-09-22 10:26:01 +02:00
2023-11-10 00:08:09 +01:00
2022-08-26 14:59:59 +02:00
2024-01-17 01:12:24 +09:00
2023-03-27 16:33:36 +02:00
2024-07-06 14:41:44 +02:00