mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
cd13d0260a
This issue has actually already been fixed with commit 46f2c690. We're adding a regression test and a NEWS entry, and also port the fix in gdImageCropThreshold() from libgd: * <https://github.com/libgd/libgd/commit/b347e034> * <https://github.com/libgd/libgd/commit/46f2c690>
16 lines
374 B
PHP
16 lines
374 B
PHP
--TEST--
|
|
Bug #72494 (imagecropauto out-of-bounds access)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = imagecreate(10,10);
|
|
imagecropauto($im, IMG_CROP_THRESHOLD, 0, 1337);
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Warning: imagecropauto(): Color argument missing with threshold mode in %s on line %d
|
|
===DONE===
|