1--TEST-- 2GetImageSize() for tiff format with big-endian (aka Motorola, aka MM) ordering 3--SKIPIF-- 4<?php 5 if (!defined("IMAGETYPE_TIFF_MM")) { 6 die("skip tiff_mm 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() : tiff_mm format ***\n"; 18var_dump(getimagesize(dirname(__FILE__) . "/2x2mm.tif", $arr)); 19var_dump($arr); 20 21?> 22===DONE=== 23--EXPECT-- 24*** Testing getimagesize() : tiff_mm format *** 25array(5) { 26 [0]=> 27 int(2) 28 [1]=> 29 int(2) 30 [2]=> 31 int(8) 32 [3]=> 33 string(20) "width="2" height="2"" 34 ["mime"]=> 35 string(10) "image/tiff" 36} 37array(0) { 38} 39===DONE===