mirror of
https://github.com/php/php-src.git
synced 2024-09-25 20:07:26 +00:00
1b6d773657
- update colormatch
20 lines
356 B
PHP
20 lines
356 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);
|
|
|
|
imagedestroy($im);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagecolormatch(): Image2 must have at least one color in %s on line %d
|
|
|