diff options
| author | Pierre Joye <pajoye@php.net> | 2006-12-10 01:58:50 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2006-12-10 01:58:50 +0000 |
| commit | 7faf8325e7cb8abd2e22396de8ea5a54bef4c7c2 (patch) | |
| tree | dbae0de0d64a0a98d82c0687b1d52fecb01e1dd6 /ext | |
| parent | 0d444306c96f99da21c3fa71390830acb83ed146 (diff) | |
| download | php-git-7faf8325e7cb8abd2e22396de8ea5a54bef4c7c2.tar.gz | |
- #39508, add test (imagefill crashes with small image)
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/gd/tests/bug39508.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/gd/tests/bug39508.phpt b/ext/gd/tests/bug39508.phpt new file mode 100644 index 0000000000..9e86efc207 --- /dev/null +++ b/ext/gd/tests/bug39508.phpt @@ -0,0 +1,16 @@ +--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"); + if (!GD_BUNDLED) die('skip external GD libraries always fail'); +?> +--FILE-- +<?php +$im = imagecreatetruecolor(3,1); +$bgcolor = imagecolorallocatealpha($im,255, 255, 0, 0); +imagefill($im,0,0,$bgcolor); +print_r(imagecolorat($im, 1,0)); +?> +--EXPECTF-- +16776960 |
