Annotation of embedaddon/php/ext/gd/tests/types.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: imagetypes
! 3: --SKIPIF--
! 4: <?php
! 5: if (!function_exists('imagetypes')) die("skip gd extension not available\n");
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9: $flags = imagetypes();
! 10:
! 11: if ($flags&0x1 && !function_exists("imagegif")) {
! 12: echo "gif failed\n";
! 13: }
! 14:
! 15: if ($flags&0x2 && !function_exists("imagejpeg")) {
! 16: echo "jpeg failed\n";
! 17: }
! 18:
! 19: if ($flags&0x4 && !function_exists("imagepng")) {
! 20: echo "png failed\n";
! 21: }
! 22:
! 23: if ($flags&0x8 && !function_exists("imagewbmp")) {
! 24: echo "wbmp failed\n";
! 25: }
! 26:
! 27: if ($flags&16 && !function_exists("imagecreatefromxpm")) {
! 28: echo "xom failed\n";
! 29: }
! 30: echo "ok\n";
! 31: ?>
! 32: --EXPECTF--
! 33: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>