mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
a375d54785
Cf. PR #6787. Closes GH-6994.
24 lines
355 B
PHP
24 lines
355 B
PHP
--TEST--
|
|
imagecolormatch
|
|
--EXTENSIONS--
|
|
gd
|
|
--FILE--
|
|
<?php
|
|
|
|
$im = imagecreatetruecolor(5,5);
|
|
$im2 = imagecreate(5,5);
|
|
|
|
try {
|
|
imagecolormatch($im, $im2);
|
|
} catch (ValueError $exception) {
|
|
echo $exception->getMessage() . "\n";
|
|
}
|
|
|
|
echo "ok\n";
|
|
|
|
imagedestroy($im);
|
|
?>
|
|
--EXPECT--
|
|
imagecolormatch(): Argument #2 ($image2) must have at least one color
|
|
ok
|