xref: /PHP-5.6/ext/gd/tests/bug66387.phpt (revision 54293d21)
1--TEST--
2Bug #66387 (Stack overflow with imagefilltoborder)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available!');
6if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.1', '<')) {
7    die("skip test requires GD 2.2.1 or higher");
8}
9?>
10--FILE--
11<?php
12$im = imagecreatetruecolor(20, 20);
13$c = imagecolorallocate($im, 255, 0, 0);
14imagefilltoborder($im, 0, -999355, $c, $c);
15echo "ready\n";
16?>
17--EXPECT--
18ready
19