From: Marcus Boerger Date: Wed, 21 Aug 2002 11:37:22 +0000 (+0000) Subject: Reflect recent changes to exif.c X-Git-Tag: RELEASE_0_91~344 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b24fc1c5add33f0b9e2e8f214c45899b42dfe6b;p=php Reflect recent changes to exif.c --- diff --git a/ext/exif/tests/003.phpt b/ext/exif/tests/003.phpt index ce2c7f840a..5e07e0ee52 100644 --- a/ext/exif/tests/003.phpt +++ b/ext/exif/tests/003.phpt @@ -2,8 +2,11 @@ Check for exif_read_data, Unicode user comment --SKIPIF-- ---POST-- ---GET-- +--INI-- +output_handler = +zlib.output_compression = Off +exif.decode_unicode_motorola=UCS-2BE +exif.encode_unicode=ISO-8859-15 --FILE-- $section) { diff --git a/ext/exif/tests/004.phpt b/ext/exif/tests/004.phpt index 9dd5c90324..28a1e437a7 100644 --- a/ext/exif/tests/004.phpt +++ b/ext/exif/tests/004.phpt @@ -2,31 +2,33 @@ Check for exif_read_data, Unicode WinXP tags --SKIPIF-- ---POST-- ---GET-- +--INI-- +output_handler = +zlib.output_compression = Off +exif.decode_unicode_intel=UCS-2LE +exif.decode_unicode_motorola=UCS-2BE +exif.encode_unicode=ISO-8859-1 --FILE-- $section) { - $accept .= $section; - foreach($section as $name=>$value) { - if ( $idx!='FILE' || $name!='FileDateTime') { - $accept .= substr($name,0,2); - $accept .= $value; - } - } -} -echo $accept; +echo var_dump($image['WINXP']); ?> --EXPECT-- -ArrayFitest4.jpgFi713Fi2Miimage/jpegSeANY_TAG, IFD0, WINXPArrayhtwidth="1" height="1"He1Wi1Is1By0ArraySuArrayKeArrayAuArrayCoArrayTiArrayArraySuSubject...KeKeywords...AuRui CarmoCoComments +array(5) { + ["Subject"]=> + string(10) "Subject..." + ["Keywords"]=> + string(11) "Keywords..." + ["Author"]=> + string(9) "Rui Carmo" + ["Comments"]=> + string(29) "Comments Line2 Line3 -Line4TiTitle... \ No newline at end of file +Line4" + ["Title"]=> + string(8) "Title..." +}