/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
gd
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/gd/tests/bug72709.phpt
--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); try { var_dump(imagesetstyle($im, array())); } catch (\Error $ex) { echo $ex->getMessage() . "\n"; } imagesetpixel($im, 0, 0, IMG_COLOR_STYLED); imagedestroy($im); ?> ====DONE==== --EXPECT-- imagesetstyle(): Argument #2 ($style) cannot be empty ====DONE====
Copyright ©2k19 -
Hexid
|
Tex7ure