mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
![]() 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 |
||
---|---|---|
.. | ||
bmp.h | ||
gd.c | ||
gd.h | ||
gd2copypal.c | ||
gd2time.c | ||
gd2topng.c | ||
gd_avif.c | ||
gd_bmp.c | ||
gd_color_match.c | ||
gd_crop.c | ||
gd_errors.h | ||
gd_filter.c | ||
gd_gd.c | ||
gd_gd2.c | ||
gd_gif_in.c | ||
gd_gif_out.c | ||
gd_intern.h | ||
gd_interpolation.c | ||
gd_io.c | ||
gd_io.h | ||
gd_io_dp.c | ||
gd_io_file.c | ||
gd_io_ss.c | ||
gd_jpeg.c | ||
gd_matrix.c | ||
gd_pixelate.c | ||
gd_png.c | ||
gd_rotate.c | ||
gd_security.c | ||
gd_ss.c | ||
gd_tga.c | ||
gd_tga.h | ||
gd_topal.c | ||
gd_transform.c | ||
gd_wbmp.c | ||
gd_webp.c | ||
gd_xbm.c | ||
gdcache.c | ||
gdcache.h | ||
gddemo.c | ||
gdfontg.c | ||
gdfontg.h | ||
gdfontl.c | ||
gdfontl.h | ||
gdfontmb.c | ||
gdfontmb.h | ||
gdfonts.c | ||
gdfonts.h | ||
gdfontt.c | ||
gdfontt.h | ||
gdft.c | ||
gdhelpers.c | ||
gdhelpers.h | ||
gdkanji.c | ||
gdparttopng.c | ||
gdtables.c | ||
gdtest.c | ||
gdtestft.c | ||
gdtopng.c | ||
gdxpm.c | ||
jisx0208.h | ||
pngtogd.c | ||
pngtogd2.c | ||
testac.c | ||
wbmp.c | ||
wbmp.h | ||
webpng.c |