diff options
Diffstat (limited to 'ext/gd/tests/bug53154.phpt')
-rw-r--r-- | ext/gd/tests/bug53154.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/gd/tests/bug53154.phpt b/ext/gd/tests/bug53154.phpt new file mode 100644 index 0000000000..6cbae2016c --- /dev/null +++ b/ext/gd/tests/bug53154.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #53154 (Zero-height rectangle has whiskers) +--SKIPIF-- +<?php +if (!extension_loaded('gd')) die('skip gd extension not available'); +?> +--FILE-- +<?php +$im = imagecreatetruecolor(100, 10); +$red = imagecolorallocate($im, 255, 0, 0); +imagerectangle($im, 5, 5, 95, 5, $red); +var_dump(imagecolorat($im, 5, 4) !== $red); +var_dump(imagecolorat($im, 5, 6) !== $red); +var_dump(imagecolorat($im, 95, 4) !== $red); +var_dump(imagecolorat($im, 95, 6) !== $red); +?> +--EXPECT-- +bool(true) +bool(true) +bool(true) +bool(true) |