Annotation of embedaddon/php/ext/standard/tests/image/getimagesize_xbm.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: GetImageSize() for xbm format
3: --SKIPIF--
4: <?php
5: if (!defined("IMAGETYPE_XBM")) {
6: die("skip xbm 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:
17: echo "*** Testing getimagesize() : xbm format ***\n";
18: var_dump(getimagesize(dirname(__FILE__) . "/75x50.xbm", $arr));
19: var_dump($arr);
20:
21: ?>
22: ===DONE===
23: --EXPECT--
24: *** Testing getimagesize() : xbm format ***
25: array(5) {
26: [0]=>
27: int(75)
28: [1]=>
29: int(50)
30: [2]=>
31: int(16)
32: [3]=>
33: string(22) "width="75" height="50""
34: ["mime"]=>
35: string(9) "image/xbm"
36: }
37: array(0) {
38: }
39: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>