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/bug73155.phpt |
--TEST-- Bug #73155 (imagegd2() writes wrong chunk sizes on boundaries) --SKIPIF-- <?php if (!extension_loaded('gd')) die('skip gd extension not available'); ?> --FILE-- <?php $im = imagecreate(64, 64); imagecolorallocate($im, 0, 0, 0); ob_start(); imagegd2($im, null, 64, IMG_GD2_RAW); $buffer = ob_get_clean(); $header = unpack('@10/nchunk_size/nformat/nx_count/ny_count', $buffer); printf("chunk size: %d\n", $header['chunk_size']); printf("x chunk count: %d\n", $header['x_count']); printf("y chunk count: %d\n", $header['y_count']); printf("file size: %d\n", strlen($buffer)); ?> ===DONE=== --EXPECT-- chunk size: 64 x chunk count: 1 y chunk count: 1 file size: 5145 ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`