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 >> /opt/php-7.0.1/ext/standard/tests/streams/ |
files >> //opt/php-7.0.1/ext/standard/tests/streams/bug46426.phpt |
--TEST-- Bug #46426 (3rd parameter offset of stream_get_contents not works for "0") --FILE-- <?php $tmp = tmpfile(); fwrite($tmp, b"12345"); echo stream_get_contents($tmp, 2, 1); echo "\n"; echo stream_get_contents($tmp, -1); echo "\n"; echo stream_get_contents($tmp, -1, 0); echo "\n"; echo stream_get_contents($tmp, -1, 2); echo "\n"; echo stream_get_contents($tmp, 0, 0); echo "\n"; echo stream_get_contents($tmp, 1, 0); echo "\n"; echo stream_get_contents($tmp, -1); @unlink($tmp); ?> --EXPECT-- 23 45 12345 345 1 2345y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`