xref: /PHP-5.3/ext/exif/tests/exif008.phpt (revision 375631c3)
1--TEST--
2Check for exif_read_data, JPEG with IFD data in Intel byte-order.
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
10var_dump(exif_read_data(dirname(__FILE__).'/image008.jpg'));
11?>
12--EXPECTF--
13array(16) {
14  ["FileName"]=>
15  string(12) "image008.jpg"
16  ["FileDateTime"]=>
17  int(%d)
18  ["FileSize"]=>
19  int(%d)
20  ["FileType"]=>
21  int(2)
22  ["MimeType"]=>
23  string(10) "image/jpeg"
24  ["SectionsFound"]=>
25  string(13) "ANY_TAG, IFD0"
26  ["COMPUTED"]=>
27  array(8) {
28    ["html"]=>
29    string(20) "width="1" height="1""
30    ["Height"]=>
31    int(1)
32    ["Width"]=>
33    int(1)
34    ["IsColor"]=>
35    int(1)
36    ["ByteOrderMotorola"]=>
37    int(0)
38    ["Copyright"]=>
39    string(24) "Eric Stewart, Hex Editor"
40    ["Copyright.Photographer"]=>
41    string(12) "Eric Stewart"
42    ["Copyright.Editor"]=>
43    string(10) "Hex Editor"
44  }
45  ["ImageDescription"]=>
46  string(15) "My description."
47  ["Make"]=>
48  string(11) "OpenShutter"
49  ["Model"]=>
50  string(8) "OS 1.0.0"
51  ["XResolution"]=>
52  string(4) "72/1"
53  ["YResolution"]=>
54  string(4) "72/1"
55  ["ResolutionUnit"]=>
56  int(2)
57  ["DateTime"]=>
58  string(19) "2008:06:19 01:47:53"
59  ["Artist"]=>
60  string(12) "Eric Stewart"
61  ["Copyright"]=>
62  string(12) "Eric Stewart"
63}
64--CREDIT--
65Eric Stewart <ericleestewart@gmail.com>
66