xref: /PHP-7.0/ext/standard/tests/image/bug70052.phpt (revision 87829c09)
1--TEST--
2Bug #70052 (getimagesize() fails for very large and very small WBMP)
3--FILE--
4<?php
5var_dump(getimagesize(__DIR__ . '/bug70052_1.wbmp'));
6var_dump(getimagesize(__DIR__ . '/bug70052_2.wbmp'));
7?>
8--EXPECT--
9bool(false)
10array(5) {
11  [0]=>
12  int(3)
13  [1]=>
14  int(3)
15  [2]=>
16  int(15)
17  [3]=>
18  string(20) "width="3" height="3""
19  ["mime"]=>
20  string(18) "image/vnd.wap.wbmp"
21}
22