[PHP-CVS] cvs: php4 /ext/exif/tests 002.phpt
derick Tue Oct 15 02:37:06 2002 EDT Modified files: /php4/ext/exif/tests002.phpt Log: - Staying consistent with other tests Index: php4/ext/exif/tests/002.phpt diff -u php4/ext/exif/tests/002.phpt:1.4 php4/ext/exif/tests/002.phpt:1.5 --- php4/ext/exif/tests/002.phpt:1.4Mon Oct 14 20:35:05 2002 +++ php4/ext/exif/tests/002.phptTue Oct 15 02:37:05 2002 -4,8 +4,8 ?php if (!extension_loaded(exif)) print skip;? --INI-- magic_quotes_runtime=0 -output_handler = -zlib.output_compression = Off +output_handler= +zlib.output_compression=0 --FILE-- ?php /* -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php4 /ext/exif/tests 002.phpt
iliaa Tue Oct 15 08:48:21 2002 EDT Modified files: /php4/ext/exif/tests002.phpt Log: Fixed the output_handler ini setting. Code cleanup. Index: php4/ext/exif/tests/002.phpt diff -u php4/ext/exif/tests/002.phpt:1.5 php4/ext/exif/tests/002.phpt:1.6 --- php4/ext/exif/tests/002.phpt:1.5Tue Oct 15 02:37:05 2002 +++ php4/ext/exif/tests/002.phptTue Oct 15 08:48:21 2002 -4,7 +4,7 ?php if (!extension_loaded(exif)) print skip;? --INI-- magic_quotes_runtime=0 -output_handler= +output_handler= zlib.output_compression=0 --FILE-- ?php -13,16 +13,12 test2.jpg is the same image but contains Exif/Comment information and a copy of test1.jpg as a thumbnail. */ -$infile= './ext/exif/tests/test1.jpg'; -$fp= fopen($infile,'rb'); -$image = fread($fp,filesize($infile)); -//$image = stripslashes($image); -echo md5($image).'_'.filesize($infile); -fclose($fp); +$infile = './ext/exif/tests/test1.jpg'; +echo md5_file($infile).'_'.filesize($infile); $thumb = exif_thumbnail('./ext/exif/tests/test2.jpg'); -echo strcmp($image,$thumb) ? '_different_' : '_identical_'; -echo strlen($thumb).'_'.md5($thumb); +echo == ; +echo md5($thumb).'_'.strlen($thumb); echo \n; ? --EXPECT-- -27bbfd9fc10e1e663d749f5225447905_523_identical_523_27bbfd9fc10e1e663d749f5225447905 +27bbfd9fc10e1e663d749f5225447905_523 == 27bbfd9fc10e1e663d749f5225447905_523 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php4 /ext/exif/tests 002.phpt
helly Mon Oct 14 20:35:06 2002 EDT Modified files: /php4/ext/exif/tests002.phpt Log: remove ob_end_clean() and instead use ini section #Derick you're right this was no good idea. I just left it over after testing #the test. Index: php4/ext/exif/tests/002.phpt diff -u php4/ext/exif/tests/002.phpt:1.3 php4/ext/exif/tests/002.phpt:1.4 --- php4/ext/exif/tests/002.phpt:1.3Sun Aug 25 14:48:46 2002 +++ php4/ext/exif/tests/002.phptMon Oct 14 20:35:05 2002 -4,6 +4,8 ?php if (!extension_loaded(exif)) print skip;? --INI-- magic_quotes_runtime=0 +output_handler = +zlib.output_compression = Off --FILE-- ?php /* -11,7 +13,6 test2.jpg is the same image but contains Exif/Comment information and a copy of test1.jpg as a thumbnail. */ -if (function_exists(ob_end_clean)) ob_end_clean(); $infile= './ext/exif/tests/test1.jpg'; $fp= fopen($infile,'rb'); $image = fread($fp,filesize($infile)); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php