cvs: php4 /ext/exif/tests 003.phpt test3.jpg

From: Date: Fri, 05 Apr 2002 18:05:48 +0000
Subject: cvs: php4 /ext/exif/tests 003.phpt test3.jpg
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10908@lists.php.net to get a copy of this message
helly Fri Apr 5 13:05:48 2002 EDT Added files: /php4/ext/exif/tests 003.phpt test3.jpg Log: -testing unicode user-comment Index: php4/ext/exif/tests/003.phpt +++ php4/ext/exif/tests/003.phpt --TEST-- Check for exif_read_data --SKIPIF-- <?php if (!extension_loaded("exif")) print "skip";?> --POST-- --GET-- --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.jpgFi1237Fi2SeANY_TAG, IFD0, THUMBNAIL, COMMENTArrayhtwidth="1" height="1"He1Wi1Is1UsÄÖÜßäöüUsUNICODECoPhoto (c) M.Boerger, Edited by M.Boerger.CoPhoto (c) M.BoergerCoEdited by M.Boerger.ArrayCoPhoto (c) M.BoergerUsUNICODEArrayJP134JP523Array0Comment #1.1Comment #2.2Comment #3end

« previous php.cvs (#10908) next »