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