mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
20 lines
373 B
Plaintext
20 lines
373 B
Plaintext
|
--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
|