Commit: de7415ea559444fe0a0cb4d4b4b7b93c8e19435a Author: Remi Collet <r...@php.net> Mon, 6 May 2013 10:25:36 +0200 Parents: 96a575123d09dcbc6674db527671fa60c7cf3842 Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=de7415ea559444fe0a0cb4d4b4b7b93c8e19435a Log: gd: fix 2 failed tests (bundled lib) due to arithmetic precision (allow minor diff). Changed paths: M ext/gd/tests/bug43073.phpt M ext/gd/tests/bug48801.phpt Diff: diff --git a/ext/gd/tests/bug43073.phpt b/ext/gd/tests/bug43073.phpt index 4f448f2..8ddd324 100644 --- a/ext/gd/tests/bug43073.phpt +++ b/ext/gd/tests/bug43073.phpt @@ -33,19 +33,19 @@ imagepng($g, "$cwd/bug43073.png"); --CLEAN-- <?php @unlink(dirname(__FILE__) . '/bug43073.png'); ?> --EXPECTF-- -(500, 402), (610, 402), (610, 376), (500, 376) +(500, 40%d), (610, 40%d), (610, 376), (500, 376) (492, 363), (591, 322), (580, 295), (480, 336) (470, 331), (548, 254), (527, 233), (449, 310) (439, 309), (483, 202), (461, 193), (416, 299) -(401, 300), (401, 183), (381, 183), (381, 300) +(40%d, 300), (40%d, 183), (38%d, 183), (38%d, 300) (362, 307), (316, 195), (291, 205), (337, 318) (330, 329), (246, 244), (224, 265), (308, 350) (308, 360), (202, 316), (190, 344), (296, 388) -(300, 399), (186, 399), (186, 425), (300, 425) +(300, %d), (18%d, %d), (18%d, 425), (%d, 425) (306, 437), (195, 483), (206, 510), (318, 464) (328, 469), (240, 557), (260, 578), (349, 491) (359, 491), (312, 607), (334, 616), (382, 501) -(398, 500), (398, 618), (418, 618), (418, 500) +(%d, 500), (%d, 618), (41%d, 618), (41%d, 500) (436, 493), (483, 607), (507, 597), (461, 482) (468, 471), (555, 558), (577, 538), (490, 450) (490, 440), (600, 485), (611, 457), (502, 412) diff --git a/ext/gd/tests/bug48801.phpt b/ext/gd/tests/bug48801.phpt index fd25541..773564f 100644 --- a/ext/gd/tests/bug48801.phpt +++ b/ext/gd/tests/bug48801.phpt @@ -20,6 +20,6 @@ echo '(' . $bbox[6] . ', ' . $bbox[7] . ")\n"; ?> --EXPECTF-- (-1, 15) -(155, 15) -(155, -48) +(15%d, 15) +(15%d, -48) (-1, -48) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php