--TEST-- Bug #72697: select_colors write out-of-bounds --EXTENSIONS-- gd --SKIPIF-- --FILE-- imagetruecolortopalette($img, false, PHP_INT_MAX / 8) ); ?> DONE --EXPECT-- !! [ValueError] imagetruecolortopalette(): Argument #3 ($num_colors) must be greater than 0 and less than 2147483647 DONE