xref: /PHP-5.5/ext/gd/tests/bug43121.phpt (revision 547ba90c)
1--TEST--
2Bug #43121 (gdImageFill with IMG_COLOR_TILED crashes httpd)
3--SKIPIF--
4<?php
5	if (!extension_loaded('gd')) die("skip gd extension not available\n");
6?>
7--FILE--
8<?php
9$im = ImageCreate( 200, 100 );
10$black = ImageColorAllocate( $im, 0, 0, 0 );
11
12$im_tile = ImageCreateFromGif(dirname(__FILE__) . "/bug43121.gif" );
13ImageSetTile( $im, $im_tile );
14ImageFill( $im, 0, 0, IMG_COLOR_TILED );
15
16ImageDestroy( $im );
17
18print "OK";
19?>
20--EXPECTF--
21OK
22