diff options
Diffstat (limited to 'ext/gd/tests/bug39286.phpt')
| -rw-r--r-- | ext/gd/tests/bug39286.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/gd/tests/bug39286.phpt b/ext/gd/tests/bug39286.phpt new file mode 100644 index 0000000..9171fb7 --- /dev/null +++ b/ext/gd/tests/bug39286.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #39508 (imagefill crashes with small images 3 pixels or less) +--SKIPIF-- +<?php + if (!extension_loaded('gd')) die("skip gd extension not available\n"); +?> +--FILE-- +<?php +$img =imagecreatefromgd2part("foo.png",0, 100, 0, 100); +?> +--EXPECTF-- + +Warning: imagecreatefromgd2part(): Zero width or height not allowed in %s on line %d |
