--TEST-- Testing wrong array size 3x2 in imageconvolution() of GD library --CREDITS-- Guilherme Blanco #testfest PHPSP on 2009-06-20 --SKIPIF-- --FILE-- 1.0) ); trycatch_dump( fn() => imageconvolution($image, $gaussian, 16, 0), fn() => imageconvolution($image, $gaussian_bad_key, 16, 0) ); ?> --EXPECT-- !! [ValueError] imageconvolution(): Argument #2 ($matrix) must be a 3x3 array, matrix[2] only has 2 elements !! [ValueError] imageconvolution(): Argument #2 ($matrix) must be a 3x3 array, matrix[2][2] cannot be found (missing integer key)