diff options
Diffstat (limited to 'ext/gd/tests/bug72337.phpt')
-rw-r--r-- | ext/gd/tests/bug72337.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/gd/tests/bug72337.phpt b/ext/gd/tests/bug72337.phpt new file mode 100644 index 0000000000..7b8a869577 --- /dev/null +++ b/ext/gd/tests/bug72337.phpt @@ -0,0 +1,14 @@ +--TEST-- + #72337 segfault in imagescale with new dimensions being <=0) +--SKIPIF-- +<?php + if (!function_exists('imagescale')) die("skip gd extension not available\n"); +?> +--FILE-- +<?php +$im = imagecreatetruecolor(1, 1); +imagescale($im, 0, 0, IMG_BICUBIC_FIXED); +echo "OK"; +?> +--EXPECT-- +OK |