diff --git a/ext/gd/tests/gh13774.phpt b/ext/gd/tests/gh13774.phpt new file mode 100644 index 00000000000..8245564efba --- /dev/null +++ b/ext/gd/tests/gh13774.phpt @@ -0,0 +1,25 @@ +--TEST-- +GH-13774 (Restore Warning instead of Fatal Error in gd_webp.c) +--EXTENSIONS-- +gd +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECTF-- +Warning: imagecreatefromwebp(): gd-webp cannot get webp info in %s on line %d + +Warning: imagecreatefromwebp(): "%s" is not a valid WEBP file in %s on line %d +bool(false)