pajoye Wed Aug 23 12:00:05 2006 UTC
Modified files:
/php-src/ext/gd/tests lines.phpt dashedlines.phpt
Log:
- please don't use base64 to test image files, it does not work
fix tests on 64bit platfrom
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/lines.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/gd/tests/lines.phpt
diff -u php-src/ext/gd/tests/lines.phpt:1.2 php-src/ext/gd/tests/lines.phpt:1.3
--- php-src/ext/gd/tests/lines.phpt:1.2 Sat Jul 22 15:16:40 2006
+++ php-src/ext/gd/tests/lines.phpt Wed Aug 23 12:00:05 2006
@@ -62,11 +62,6 @@
echo "Diagonal: ok\n";
}
-ob_start();
-imagepng($im);
-echo base64_encode(ob_get_clean()), "\n";
-
-
// Outside
$im = imagecreatetruecolor(6,6);
imagefill($im, 0,0, 0xffffff);
@@ -115,6 +110,5 @@
Horizontal: ok
Vertical: ok
Diagonal: ok
-iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAIAAABvrngfAAAAK0lEQVQImV3JsQ0AMAwCwYf9dyZFJOyE5qVDhBDWHCL0EPCpb7a6Z3WoegA14w0JDJlWpgAAAABJRU5ErkJggg==
Outside 1: ok
Outside 2: ok
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/dashedlines.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/gd/tests/dashedlines.phpt
diff -u php-src/ext/gd/tests/dashedlines.phpt:1.2
php-src/ext/gd/tests/dashedlines.phpt:1.3
--- php-src/ext/gd/tests/dashedlines.phpt:1.2 Sat Jul 22 15:16:40 2006
+++ php-src/ext/gd/tests/dashedlines.phpt Wed Aug 23 12:00:05 2006
@@ -46,10 +46,6 @@
$p5 = imagecolorat($im, 2,4) == $r;
$p6 = imagecolorat($im, 2,5) == $b;
-ob_start();
-imagepng($im);
-echo base64_encode(ob_get_clean()), "\n";
-
if ($p1 && $p2 && $p3 && $p4 && $p5 && $p6) {
echo "Vertical: ok\n";
}
@@ -79,6 +75,5 @@
?>
--EXPECTF--
Horizontal: ok
-iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAIAAABvrngfAAAAJ0lEQVQImWP8//8/AwMDAyMjA4TBwMAEoRgZoHyE0H8GRnQh0lUBABMDCgml3gqkAAAAAElFTkSuQmCC
Vertical: ok
Diagonal: ok
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php