summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug72709.phpt
blob: 1c5b1f4ae0420808504e62563edc28635293d360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #72709 (imagesetstyle() causes OOB read for empty $styles)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip ext/gd not available');
?>
--FILE--
<?php
$im = imagecreatetruecolor(1, 1);
var_dump(imagesetstyle($im, array()));
imagesetpixel($im, 0, 0, IMG_COLOR_STYLED);
imagedestroy($im);
?>
====DONE====
--EXPECTF--
Warning: imagesetstyle(): styles array must not be empty in %s%ebug72709.php on line %d
bool(false)
====DONE====