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/standard/tests/general_functions/ |
files >> //php-7.1.11/ext/standard/tests/general_functions/head.phpt |
--TEST-- header() and friends --SKIPIF-- <?php if (php_sapi_name() != "cli") { die("skip this test is for CLI"); } ?> --FILE-- <?php $v1 = headers_sent(); $v2 = headers_list(); var_dump(header("HTTP 1.0", true, 200)); var_dump($v1); var_dump($v2); var_dump(header("")); var_dump(header("", true)); var_dump(headers_sent()); var_dump(headers_list()); var_dump(header("HTTP blah")); var_dump(header("HTTP blah", true)); var_dump(headers_sent()); var_dump(headers_list()); echo "Done\n"; ?> --EXPECTF-- NULL bool(false) array(0) { } Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d NULL Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d NULL bool(true) array(0) { } Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d NULL Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d NULL bool(true) array(0) { } Doney~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`