xref: /PHP-8.3/ext/exif/tests/exif005.phpt (revision bd9f4fa6)
1--TEST--
2Check for exif_read_data, unusual IFD start
3--EXTENSIONS--
4exif
5--INI--
6output_handler=
7zlib.output_compression=0
8--FILE--
9<?php
10// test5.jpg is a 1*1 image that contains an Exif section with ifd = 00000009h
11$image  = exif_read_data(__DIR__.'/test5.jpg','',true,false);
12var_dump($image['IFD0']);
13?>
14--EXPECT--
15array(2) {
16  ["ImageDescription"]=>
17  string(11) "Ifd00000009"
18  ["DateTime"]=>
19  string(19) "2002:10:18 20:06:00"
20}
21