xref: /PHP-8.0/ext/standard/tests/image/bug72278.phpt (revision d1764ca3)
1--TEST--
2Bug #72278 (getimagesize returning FALSE on valid jpg)
3--FILE--
4<?php
5define('FILENAME', __DIR__ . DIRECTORY_SEPARATOR . 'bug72278.jpg');
6
7var_dump(getimagesize(FILENAME));
8?>
9--EXPECTF--
10Warning: getimagesize(): Corrupt JPEG data: 3 extraneous bytes before marker in %s%ebug72278.php on line %d
11array(7) {
12  [0]=>
13  int(300)
14  [1]=>
15  int(300)
16  [2]=>
17  int(2)
18  [3]=>
19  string(24) "width="300" height="300""
20  ["bits"]=>
21  int(8)
22  ["channels"]=>
23  int(3)
24  ["mime"]=>
25  string(10) "image/jpeg"
26}
27