mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
20 lines
373 B
PHP
20 lines
373 B
PHP
--TEST--
|
|
imageistruecolor, truecolortopalette
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('imagetruecolortopalette')) die("skip gd extension not available\n");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = imagecreatetruecolor(1,1);
|
|
if (imageistruecolor($im)) echo "ok\n";
|
|
|
|
if (imagetruecolortopalette($im, 1,2)) echo "ok\n";
|
|
if (!imageistruecolor($im)) echo "ok\n";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
ok
|
|
ok
|
|
ok
|