summaryrefslogtreecommitdiff
path: root/ext/exif/tests/003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/exif/tests/003.phpt')
-rw-r--r--ext/exif/tests/003.phpt32
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/exif/tests/003.phpt b/ext/exif/tests/003.phpt
deleted file mode 100644
index 68c1da82f8..0000000000
--- a/ext/exif/tests/003.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Check for exif_read_data, Unicode user comment
---SKIPIF--
-<?php if (!extension_loaded("exif") || !extension_loaded("mbstring")) print "skip";?>
---INI--
-output_handler =
-zlib.output_compression = Off
-exif.decode_unicode_motorola=UCS-2BE
-exif.encode_unicode=ISO-8859-15
---FILE--
-<?php
-/*
- test1.jpg is a 1*1 image that does not contain any Exif/Comment information
- test2.jpg is the same image but contains Exif/Comment information and a
- copy of test1.jpg as a thumbnail.
- test3.jpg is the same as test2.jpg but with a UNICODE UserComment: &Auml;&Ouml;&&Uuml;&szlig;&auml;&ouml;&uuml;
-*/
-$image = exif_read_data('./ext/exif/tests/test3.jpg','',true,false);
-$accept = '';
-foreach($image as $idx=>$section) {
- $accept .= $section;
- foreach($section as $name=>$value) {
- if ( $idx!='FILE' || $name!='FileDateTime') {
- $accept .= substr($name,0,2);
- $accept .= $value;
- }
- }
-}
-echo $accept;
-?>
---EXPECT--
-ArrayFitest3.jpgFi1240Fi2Miimage/jpegSeANY_TAG, IFD0, THUMBNAIL, COMMENTArrayhtwidth="1" height="1"He1Wi1Is1By1UsÄÖÜßäöüUsUNICODECoPhoto (c) M.Boerger, Edited by M.Boerger.CoPhoto (c) M.BoergerCoEdited by M.Boerger.Th2Thimage/jpegArrayCoPhoto (c) M.BoergerUsUNICODEArrayJP134JP523Array0Comment #1.1Comment #2.2Comment #3end \ No newline at end of file