xref: /PHP-8.2/ext/standard/tests/image/bug71848.phpt (revision a555cc0b)
1--TEST--
2Bug #71848 (getimagesize with $imageinfo returns false)
3--FILE--
4<?php
5var_dump(getimagesize(__DIR__ . '/bug71848.jpg', $info));
6var_dump(array_keys($info));
7?>
8--EXPECT--
9array(7) {
10  [0]=>
11  int(8)
12  [1]=>
13  int(8)
14  [2]=>
15  int(2)
16  [3]=>
17  string(20) "width="8" height="8""
18  ["bits"]=>
19  int(8)
20  ["channels"]=>
21  int(3)
22  ["mime"]=>
23  string(10) "image/jpeg"
24}
25array(2) {
26  [0]=>
27  string(4) "APP0"
28  [1]=>
29  string(4) "APP5"
30}
31