]> granicus.if.org Git - php/commitdiff
-remove filetime from test
authorMarcus Boerger <helly@php.net>
Wed, 13 Mar 2002 00:20:48 +0000 (00:20 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 13 Mar 2002 00:20:48 +0000 (00:20 +0000)
# that's magic - now the test should work on all installations

ext/exif/tests/001.phpt

index 2fd3697936d5bb2b5c8e49abb851c595862cf74e..487c94d38878ef8ce17f33e0a1859b96f6b69754 100644 (file)
@@ -16,11 +16,13 @@ $accept = '';
 foreach($image as $idx=>$section) {
        $accept .= $section;
        foreach($section as $name=>$value) {
-               $accept .= substr($name,0,2);
-               $accept .= $value;
+               if  ( $idx!='FILE' || $name!='FileDateTime') {
+                       $accept .= substr($name,0,2);
+                       $accept .= $value;
+               }
        }
 }
 echo $accept;
 ?>
 --EXPECT--
-ArrayFitest2.jpgFi1015448798Fi1240Fi2SeANY_TAG, IFD0, THUMBNAIL, COMMENTArrayhtwidth="1" height="1"He1Wi1Is1UsExif test image.UsASCIICoPhoto (c) M.Boerger, Edited by M.Boerger.CoPhoto (c) M.BoergerCoPhoto (c) M.BoergerArrayCoPhoto (c) M.BoergerUsASCIIArrayJP134JP523Array0Comment #1.1Comment #2.2Comment #3end
\ No newline at end of file
+ArrayFitest2.jpgFi1240Fi2SeANY_TAG, IFD0, THUMBNAIL, COMMENTArrayhtwidth="1" height="1"He1Wi1Is1UsExif test image.UsASCIICoPhoto (c) M.Boerger, Edited by M.Boerger.CoPhoto (c) M.BoergerCoPhoto (c) M.BoergerArrayCoPhoto (c) M.BoergerUsASCIIArrayJP134JP523Array0Comment #1.1Comment #2.2Comment #3end
\ No newline at end of file