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 >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/gd/tests/ |
files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/gd/tests/bug67325.phpt |
--TEST-- Bug #67325 (imagetruecolortopalette: white is duplicated in palette) --SKIPIF-- <?php if (!extension_loaded('gd')) die('skip gd extension not available'); if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.3', '<=')) { die("skip test requires newer than GD 2.2.3"); } if (!(imagetypes() & IMG_JPG)) die('skip JPEG support not available'); ?> --FILE-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug67325.jpeg'; $im = imagecreatefromjpeg($filename); imagetruecolortopalette($im, 0, 256); $white = 0; for ($i = 0; $i < 256; $i++) { $components = imagecolorsforindex($im, $i); if ($components['red'] === 255 && $components['green'] === 255 && $components['blue'] === 255) { $white++; } } var_dump($white); imagedestroy($im); ?> ===DONE=== --EXPECT-- int(0) ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`