1--TEST-- 2imagetypes 3--EXTENSIONS-- 4gd 5--FILE-- 6<?php 7$flags = imagetypes(); 8 9if ($flags&0x1 && !function_exists("imagegif")) { 10 echo "gif failed\n"; 11} 12 13if ($flags&0x2 && !function_exists("imagejpeg")) { 14 echo "jpeg failed\n"; 15} 16 17if ($flags&0x4 && !function_exists("imagepng")) { 18 echo "png failed\n"; 19} 20 21if ($flags&0x8 && !function_exists("imagewbmp")) { 22 echo "wbmp failed\n"; 23} 24 25if ($flags&16 && !function_exists("imagecreatefromxpm")) { 26 echo "xom failed\n"; 27} 28echo "ok\n"; 29?> 30--EXPECT-- 31ok 32