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/curl/tests/ |
files >> //opt/php-7.0.1/ext/curl/tests/bug52827.phpt |
--TEST-- Bug #52827 (curl_setopt with CURLOPT_STDERR erroneously increments the resource refcount) --SKIPIF-- <?php if (!extension_loaded('curl')) { exit("skip curl extension not loaded"); } ?> --FILE-- <?php $s = fopen('php://temp/maxmemory=1024','wb+'); /* force conversion of inner stream to STDIO. * This is not necessary in Windows because the * cast to a FILE* handle in curl_setopt already * forces the conversion in that platform. The * reason for this conversion is that the memory * stream has an ugly but working mechanism to * prevent being double freed when it's encapsulated, * while STDIO streams don't. */ $i = 0; while ($i++ < 5000) { fwrite($s, str_repeat('a',1024)); } $handle=curl_init('http://www.example.com'); curl_setopt($handle, CURLOPT_STDERR, $s); echo "Done."; --EXPECTF-- Done.y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`