1--TEST-- 2GetImageSize() for wbmp format 3--SKIPIF-- 4<?php 5 if (!defined("IMAGETYPE_WBMP")) { 6 die("skip wbmp file format is not available"); 7 } 8?> 9--FILE-- 10<?php 11/* Prototype : proto array getimagesize(string imagefile [, array info]) 12 * Description: Get the size of an image as 4-element array 13 * Source code: ext/standard/image.c 14 * Alias to functions: 15 */ 16 17echo "*** Testing getimagesize() : wbmp format ***\n"; 18var_dump(getimagesize(dirname(__FILE__) . "/75x50.wbmp", $arr)); 19var_dump($arr); 20 21?> 22===DONE=== 23--EXPECT-- 24*** Testing getimagesize() : wbmp format *** 25array(5) { 26 [0]=> 27 int(75) 28 [1]=> 29 int(50) 30 [2]=> 31 int(15) 32 [3]=> 33 string(22) "width="75" height="50"" 34 ["mime"]=> 35 string(18) "image/vnd.wap.wbmp" 36} 37array(0) { 38} 39===DONE=== 40