source: src/router/php7/ext/exif/tests/exif_read_exif_data_basic-mb.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 5 weeks ago

update php

File size: 1.8 KB
Line 
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(dirname(__FILE__).'/test2私はガラスを食べられたす.jpg'));
18?>
19===Done===
20--EXPECTF--
21*** Testing read_exif_data() : basic functionality ***
22Array
23(
24    [FileName] => test2私はガラスを食べられたす.jpg
25    [FileDateTime] => %d
26    [FileSize] => 1240
27    [FileType] => 2
28    [MimeType] => image/jpeg
29    [SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, COMMENT
30    [COMPUTED] => Array
31        (
32            [html] => width="1" height="1"
33            [Height] => 1
34            [Width] => 1
35            [IsColor] => 1
36            [ByteOrderMotorola] => 1
37            [UserComment] => Exif test image.
38            [UserCommentEncoding] => ASCII
39            [Copyright] => Photo (c) M.Boerger, Edited by M.Boerger.
40            [Copyright.Photographer] => Photo (c) M.Boerger
41            [Copyright.Editor] => Edited by M.Boerger.
42            [Thumbnail.FileType] => 2
43            [Thumbnail.MimeType] => image/jpeg
44        )
45
46    [Copyright] => Photo (c) M.Boerger
47    [UserComment] => ASCII
48    [THUMBNAIL] => Array
49        (
50            [JPEGInterchangeFormat] => 134
51            [JPEGInterchangeFormatLength] => 523
52        )
53
54    [COMMENT] => Array
55        (
56            [0] => Comment #1.
57            [1] => Comment #2.
58            [2] => Comment #3end
59        )
60
61)
62===Done===
Note: See TracBrowser for help on using the repository browser.