source: src/router/php7/ext/gd/tests/bug72494.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 5 weeks ago

update php

File size: 374 bytes
Line 
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===
Note: See TracBrowser for help on using the repository browser.