mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
26 lines
510 B
PHP
26 lines
510 B
PHP
--TEST--
|
|
Bug #43121 (gdImageFill with IMG_COLOR_TILED crashes httpd)
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) {
|
|
die("skip test requires GD 2.2.0 or higher");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = ImageCreate( 200, 100 );
|
|
$black = ImageColorAllocate( $im, 0, 0, 0 );
|
|
|
|
$im_tile = ImageCreateFromGif(__DIR__ . "/bug43121.gif" );
|
|
ImageSetTile( $im, $im_tile );
|
|
ImageFill( $im, 0, 0, IMG_COLOR_TILED );
|
|
|
|
ImageDestroy( $im );
|
|
|
|
print "OK";
|
|
?>
|
|
--EXPECT--
|
|
OK
|