cvs: php-src(PHP_5_2) /ext/gd/tests dashedlines.phpt lines.phpt
| From: | Pierre-Alain Joye | Date: | Wed, 23 Aug 2006 12:00:54 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/gd/tests dashedlines.phpt lines.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-40071@lists.php.net to get a copy of this message | ||
pajoye Wed Aug 23 12:00:54 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/gd/tests lines.phpt dashedlines.phpt
Log:
- MFH: 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.1.2.3&r2=1.1.2.4&diff_format=u
Index: php-src/ext/gd/tests/lines.phpt
diff -u php-src/ext/gd/tests/lines.phpt:1.1.2.3 php-src/ext/gd/tests/lines.phpt:1.1.2.4
--- php-src/ext/gd/tests/lines.phpt:1.1.2.3 Sat Jul 22 15:15:53 2006
+++ php-src/ext/gd/tests/lines.phpt Wed Aug 23 12:00:54 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.1.2.3&r2=1.1.2.4&diff_format=u
Index: php-src/ext/gd/tests/dashedlines.phpt
diff -u php-src/ext/gd/tests/dashedlines.phpt:1.1.2.3 php-src/ext/gd/tests/dashedlines.phpt:1.1.2.4
--- php-src/ext/gd/tests/dashedlines.phpt:1.1.2.3 Sat Jul 22 15:15:53 2006
+++ php-src/ext/gd/tests/dashedlines.phpt Wed Aug 23 12:00:54 2006
@@ -30,7 +30,6 @@
}
imagedestroy($im);
-
$im = imagecreatetruecolor(6,6);
imagefill($im, 0,0, 0xffffff);
@@ -46,10 +45,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 +74,5 @@
?>
--EXPECTF--
Horizontal: ok
-iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAIAAABvrngfAAAAJ0lEQVQImWP8//8/AwMDAyMjA4TBwMAEoRgZoHyE0H8GRnQh0lUBABMDCgml3gqkAAAAAElFTkSuQmCC
Vertical: ok
Diagonal: ok