1--TEST-- 2using different image sizes imagecolormatch() of GD library 3--CREDITS-- 4Paulo Alves de Sousa Filho <pspalves [at] gmail [dot] com> 5#testfest PHPSP on 2009-06-20 6--EXTENSIONS-- 7gd 8--FILE-- 9<?php 10$ima = imagecreatetruecolor(110, 20); 11$background_color = imagecolorallocate($ima, 0, 0, 0); 12$imb = imagecreate(100, 20); 13$background_color = imagecolorallocate($imb, 0, 0, 100); 14 15try { 16 imagecolormatch($ima, $imb); 17} catch (ValueError $exception) { 18 echo $exception->getMessage() . "\n"; 19} 20 21?> 22--EXPECT-- 23imagecolormatch(): Argument #2 ($image2) must be the same size as argument #1 ($im1) 24