X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fheaderparser003.phpt;h=1216fac16797196b093ad8f235979cd8a8a7ba07;hb=641b8a6849a575368953d56a84c0a533e43b9898;hp=e1954e7a0a02011fc665cccea721a4c4e3a660ea;hpb=4f92a2983270a1fa41e400ff970576161baba5e6;p=m6w6%2Fext-http diff --git a/tests/headerparser003.phpt b/tests/headerparser003.phpt index e1954e7..1216fac 100644 --- a/tests/headerparser003.phpt +++ b/tests/headerparser003.phpt @@ -12,12 +12,12 @@ $parser = new http\Header\Parser; $socket = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP); stream_set_blocking($socket[0], 0); -$headers = [ +$headers = array( "GET / HTTP/1.1\n", "Host: localhost","\n", "Content","-length: 3\n", "\n", -]; +); while ($headers) { $line = array_shift($headers);