1--TEST--
2Check for read_exif_data default behaviour
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--INI--
6output_handler=
7zlib.output_compression=0
8--FILE--
9<?php
10
11/* Prototype  : array read_exif_data  ( string $filename  [, string $sections  [, bool $arrays  [, bool $thumbnail  ]]] )
12 * Description: Alias of exif_read_data()
13 * Source code: ext/exif/exif.c
14*/
15echo "*** Testing read_exif_data() : basic functionality ***\n";
16
17print_r(read_exif_data(__DIR__.'/test2.jpg'));
18?>
19===Done===
20--EXPECTF--
21*** Testing read_exif_data() : basic functionality ***
22
23Deprecated: Function read_exif_data() is deprecated in %sexif_read_exif_data_basic.php on line 9
24Array
25(
26    [FileName] => test2.jpg
27    [FileDateTime] => %d
28    [FileSize] => 1240
29    [FileType] => 2
30    [MimeType] => image/jpeg
31    [SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, COMMENT
32    [COMPUTED] => Array
33        (
34            [html] => width="1" height="1"
35            [Height] => 1
36            [Width] => 1
37            [IsColor] => 1
38            [ByteOrderMotorola] => 1
39            [UserComment] => Exif test image.
40            [UserCommentEncoding] => ASCII
41            [Copyright] => Photo (c) M.Boerger, Edited by M.Boerger.
42            [Copyright.Photographer] => Photo (c) M.Boerger
43            [Copyright.Editor] => Edited by M.Boerger.
44            [Thumbnail.FileType] => 2
45            [Thumbnail.MimeType] => image/jpeg
46        )
47
48    [Copyright] => Photo (c) M.Boerger
49    [UserComment] => ASCII
50    [THUMBNAIL] => Array
51        (
52            [JPEGInterchangeFormat] => 134
53            [JPEGInterchangeFormatLength] => 523
54        )
55
56    [COMMENT] => Array
57        (
58            [0] => Comment #1.
59            [1] => Comment #2.
60            [2] => Comment #3end
61        )
62
63)
64===Done===
65