--TEST-- Bug #72494 (imagecropauto out-of-bounds access) --EXTENSIONS-- gd --FILE-- imagecropauto($im, IMG_CROP_THRESHOLD, 0, 1337) ); ?> --EXPECT-- !! [ValueError] imagecropauto(): Argument #4 ($color) must be greater than or equal to 0 when using the threshold mode