iliaa Thu Jun 12 15:33:19 2003 EDT
Added files: (Branch: PHP_4_3)
/php4/ext/gd/tests bug24155.phpt
Modified files:
/php4/ext/gd/libgd gd.c
/php4 NEWS
Log:
MFH: Fixed bug #24155 (gdImageRotate270 incorrectly use x parameter for y axis)
Index: php4/ext/gd/libgd/gd.c
diff -u php4/ext/gd/libgd/gd.c:1.24.2.13 php4/ext/gd/libgd/gd.c:1.24.2.14
--- php4/ext/gd/libgd/gd.c:1.24.2.13 Wed Jun 4 10:58:33 2003
+++ php4/ext/gd/libgd/gd.c Thu Jun 12 15:33:19 2003
@@ -2613,7 +2613,7 @@
if (dst != NULL) {
gdImagePaletteCopy (dst, src);
- for (uY = 0; uY<src->sx; uY++) {
+ for (uY = 0; uY<src->sy; uY++) {
for (uX = 0; uX<src->sx; uX++) {
c = f (src, uX, uY);
gdImageSetPixel(dst, (dst->sx - uY - 1), uX, c);
Index: php4/NEWS
diff -u php4/NEWS:1.1247.2.249 php4/NEWS:1.1247.2.250
--- php4/NEWS:1.1247.2.249 Mon Jun 9 13:04:57 2003
+++ php4/NEWS Thu Jun 12 15:33:19 2003
@@ -24,6 +24,8 @@
(Adam Dickmeiss)
- Fixed a bug in bundled libmysql (mysql bug #564). (Georg)
- Fixed ext/exif to honor "magic_quotes_runtime" php.ini option. (Marcus)
+- Fixed bug #24155 (gdImageRotate270 incorrectly use x parameter for y axis).
+ ([EMAIL PROTECTED], Ilia)
- Fixed bug #24060 (ncurses_del_panel() causes segfault). (Georg)
- Fixed bug #24054 (Integer overflow failure with GCC/x86 for *=). (Sascha)
- Fixed bug #23951 (constants in static initializers clobbered by inheritance).
Index: php4/ext/gd/tests/bug24155.phpt
+++ php4/ext/gd/tests/bug24155.phpt
--TEST--
Bug #24155 (gdImageRotate270 rotation problem).
--SKIPIF--
<?php
if (!extension_loaded('gd')) {
die("skip gd extension not available\n");
}
if (!GD_BUNDLED) {
die('skip external GD libraries may fail');
}
?>
--FILE--
<?php
$dest = dirname(realpath(__FILE__)) . 'bug24155.png';
@unlink($dest);
$im = imagecreatetruecolor(30, 50);
imagefill($im, 0, 0, (16777215 - 255));
$im = imagerotate($im, 270, 255);
imagepng($im, $dest);
echo md5_file($dest) . "\n";
@unlink($dest);
?>
--EXPECT--
cc867fd65c30883463ce58d0341f0997
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php