cvs: php4(PHP_4_2_0) /ext/exif/tests 001.phpt 002.phpt
| From: | Marcus B�rger | Date: | Mon, 01 Apr 2002 13:27:47 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/exif/tests 001.phpt 002.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10811@lists.php.net to get a copy of this message | ||
helly Mon Apr 1 08:27:47 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/exif/tests 001.phpt 002.phpt
Log:
MFH finding test files
Index: php4/ext/exif/tests/001.phpt
diff -u php4/ext/exif/tests/001.phpt:1.1.2.2 php4/ext/exif/tests/001.phpt:1.1.2.3
--- php4/ext/exif/tests/001.phpt:1.1.2.2 Sat Mar 30 14:11:44 2002
+++ php4/ext/exif/tests/001.phpt Mon Apr 1 08:27:47 2002
@@ -11,7 +11,7 @@
test2.jpg is the same image but contains Exif/Comment information and a
copy of test1.jpg as a thumbnail.
*/
-$image = exif_read_data('test2.jpg','',true,false);
+$image = exif_read_data('./ext/exif/tests/test2.jpg','',true,false);
$accept = '';
foreach($image as $idx=>$section) {
$accept .= $section;
Index: php4/ext/exif/tests/002.phpt
diff -u php4/ext/exif/tests/002.phpt:1.1 php4/ext/exif/tests/002.phpt:1.1.2.1
--- php4/ext/exif/tests/002.phpt:1.1 Wed Mar 6 17:01:45 2002
+++ php4/ext/exif/tests/002.phpt Mon Apr 1 08:27:47 2002
@@ -11,12 +11,12 @@
test2.jpg is the same image but contains Exif/Comment information and a
copy of test1.jpg as a thumbnail.
*/
-$istat= stat('test1.jpg');
-$fp = fopen('test1.jpg','r');
+$istat= stat('./ext/exif/tests/test1.jpg');
+$fp = fopen('./ext/exif/tests/test1.jpg','r');
$image = fread($fp,$istat[7]);
echo substr($image,490,5).'_'.$istat[7];
fclose($fp);
-$thumb = exif_thumbnail('test2.jpg');
+$thumb = exif_thumbnail('./ext/exif/tests/test2.jpg');
echo strcmp($image,$thumb) ? 'different' : '_identical_';
echo strlen($thumb);
echo '_'.substr($thumb,490,5);