1--TEST--
2GetImageSize() with 246x247 pixels
3--SKIPIF--
4<?php
5    require_once('skipif_imagetype.inc');
6?>
7--FILE--
8<?php
9    // Note: SWC requires zlib
10    $dir = opendir(__DIR__) or die('cannot open directory: '.__DIR__);
11    $result = array();
12    $files  = array();
13    while (($file = readdir($dir)) !== FALSE) {
14        if (preg_match('/^246x247\./',$file)) {
15            $files[] = $file;
16        }
17    }
18    closedir($dir);
19    sort($files);
20    foreach($files as $file) {
21        $result[$file] = getimagesize(__DIR__."/$file");
22    }
23    var_dump($result);
24?>
25--EXPECT--
26array(1) {
27  ["246x247.png"]=>
28  array(6) {
29    [0]=>
30    int(246)
31    [1]=>
32    int(247)
33    [2]=>
34    int(3)
35    [3]=>
36    string(24) "width="246" height="247""
37    ["bits"]=>
38    int(4)
39    ["mime"]=>
40    string(9) "image/png"
41  }
42}
43