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