Annotation of embedaddon/php/ext/exif/tests/exif_read_exif_data_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Check for read_exif_data default behaviour
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
        !             5: --INI--
        !             6: output_handler=
        !             7: zlib.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: */
        !            15: echo "*** Testing read_exif_data() : basic functionality ***\n";
        !            16: 
        !            17: print_r(read_exif_data(dirname(__FILE__).'/test2.jpg'));
        !            18: ?>
        !            19: ===Done===
        !            20: --EXPECTF--
        !            21: *** Testing read_exif_data() : basic functionality ***
        !            22: Array
        !            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===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>