Annotation of embedaddon/php/ext/exif/tests/exif006.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Check for exif_read_data, magic_quotes_runtime
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('exif')) die('skip exif extension not available');
6: if (version_compare(PHP_VERSION, "4.4.0-dev", "<")) die('skip PHP 4.4 required');
7: ?>
8: --INI--
9: output_handler=
10: zlib.output_compression=0
11: magic_quotes_runtime=1
12: --FILE--
13: <?php
14: /*
15: test1.jpg is a 1*1 image that does not contain any Exif/Comment information
16: test2.jpg is the same image but contains Exif/Comment information and a
17: copy of test1.jpg as a thumbnail.
18: test6.jpg is the same as test2.jpg but with a UNICODE UserComment: ÄÖ&Üßäöü
19: */
20: var_dump(exif_read_data(dirname(__FILE__).'/test6.jpg','',true,false));
21: ?>
22: --EXPECTF--
23: Deprecated: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0
24: array(5) {
25: ["FILE"]=>
26: array(6) {
27: ["FileName"]=>
28: string(9) "test6.jpg"
29: ["FileDateTime"]=>
30: int(%d)
31: ["FileSize"]=>
32: int(1240)
33: ["FileType"]=>
34: int(2)
35: ["MimeType"]=>
36: string(10) "image/jpeg"
37: ["SectionsFound"]=>
38: string(33) "ANY_TAG, IFD0, THUMBNAIL, COMMENT"
39: }
40: ["COMPUTED"]=>
41: array(12) {
42: ["html"]=>
43: string(24) "width=\"1\" height=\"1\""
44: ["Height"]=>
45: int(1)
46: ["Width"]=>
47: int(1)
48: ["IsColor"]=>
49: int(1)
50: ["ByteOrderMotorola"]=>
51: int(1)
52: ["UserComment"]=>
53: string(16) "Hallo \'Du\'+da!"
54: ["UserCommentEncoding"]=>
55: string(5) "ASCII"
56: ["Copyright"]=>
57: string(45) "Photo \"M. Boerger\"., Edited \'M. Boerger\'."
58: ["Copyright.Photographer"]=>
59: string(21) "Photo \"M. Boerger\"."
60: ["Copyright.Editor"]=>
61: string(22) "Edited \'M. Boerger\'."
62: ["Thumbnail.FileType"]=>
63: int(2)
64: ["Thumbnail.MimeType"]=>
65: string(10) "image/jpeg"
66: }
67: ["IFD0"]=>
68: array(2) {
69: ["Copyright"]=>
70: string(21) "Photo \"M. Boerger\"."
71: ["UserComment"]=>
72: string(5) "ASCII"
73: }
74: ["THUMBNAIL"]=>
75: array(2) {
76: ["JPEGInterchangeFormat"]=>
77: int(134)
78: ["JPEGInterchangeFormatLength"]=>
79: int(523)
80: }
81: ["COMMENT"]=>
82: array(3) {
83: [0]=>
84: string(13) "Comment \"1\""
85: [1]=>
86: string(13) "Comment \'2\'"
87: [2]=>
88: string(13) "Comment #3end"
89: }
90: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>