1--TEST-- 2Testing imagecreatetruecolor() of GD library 3--CREDITS-- 4Rafael Dohms <rdohms [at] gmail [dot] com> 5--SKIPIF-- 6<?php 7 if (!extension_loaded("gd")) die("skip GD not present"); 8 if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible"); 9?> 10--FILE-- 11<?php 12$image = imagecreatetruecolor(180, 30); 13 14ob_start(); 15imagepng($image, null, 9); 16$img = ob_get_contents(); 17ob_end_clean(); 18 19echo md5(base64_encode($img)); 20?> 21--EXPECT-- 225a8fe9864cbd20e5dbe730c77f30db95 23