xref: /PHP-7.2/ext/gd/tests/bug72494.phpt (revision 3f72c77c)
1--TEST--
2Bug #72494 (imagecropauto out-of-bounds access)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available');
6?>
7--FILE--
8<?php
9$im = imagecreate(10,10);
10imagecropauto($im, IMG_CROP_THRESHOLD, 0, 1337);
11?>
12===DONE===
13--EXPECTF--
14Warning: imagecropauto(): Color argument missing with threshold mode in %s on line %d
15===DONE===
16