mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
f5a7694305
- MFH: test for imagecolormatch
22 lines
374 B
PHP
22 lines
374 B
PHP
--TEST--
|
|
imagecolormatch
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('imagecolormatch')) die("skip gd extension not available\n");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$im = imagecreatetruecolor(5,5);
|
|
$im2 = imagecreate(5,5);
|
|
|
|
imagecolormatch($im, $im2);
|
|
|
|
echo "ok\n";
|
|
|
|
imagedestroy($im);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: imagecolormatch(): Image2 must have at least one color in %s on line %d
|
|
|