xref: /PHP-5.5/ext/gd/tests/bug66387.phpt (revision f96ebb09)
1--TEST--
2Bug #66387 (Stack overflow with imagefilltoborder)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available!');
6?>
7--FILE--
8<?php
9$im = imagecreatetruecolor(20, 20);
10$c = imagecolorallocate($im, 255, 0, 0);
11imagefilltoborder($im, 0, -999355, $c, $c);
12echo "ready\n";
13?>
14--EXPECT--
15ready
16