1--TEST-- 2Testing imagecreate(): error on out of bound parameters 3--SKIPIF-- 4<?php 5 if (!extension_loaded("gd")) die("skip GD not present"); 6 if (!function_exists("imagecreate")) die("skip GD Version not compatible"); 7?> 8--FILE-- 9<?php 10 11require __DIR__ . '/func.inc'; 12 13trycatch_dump( 14 fn() => imagecreate(-1, 30), 15 fn() => imagecreate(30, -1) 16); 17 18?> 19--EXPECT-- 20!! [ValueError] imagecreate(): Argument #1 ($width) must be greater than 0 21!! [ValueError] imagecreate(): Argument #2 ($height) must be greater than 0 22