php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/gd/tests/ |
files >> //php-7.1.11/ext/gd/tests/bug64641.phpt |
--TEST-- Bug #64641 (imagefilledpolygon doesn't draw horizontal line) --SKIPIF-- <?php if (!extension_loaded('gd')) die("skip gd extension not available\n"); if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) { die("skip test requires GD 2.2.2 or higher"); } ?> --FILE-- <?php require_once __DIR__ . '/similarity.inc'; $im = imagecreatetruecolor(640, 480); $points = array( 100, 100, 100, 200, 100, 300 ); imagefilledpolygon($im, $points, 3, 0xFFFF00); $points = array( 300, 200, 400, 200, 500, 200 ); imagefilledpolygon($im, $points, 3, 0xFFFF00); $ex = imagecreatefrompng(__DIR__ . '/bug64641.png'); if (($diss = calc_image_dissimilarity($ex, $im)) < 1e-5) { echo "IDENTICAL"; } else { echo "DISSIMILARITY: $diss"; } imagedestroy($ex); imagedestroy($im); ?> --EXPECT-- IDENTICALy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`