X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fheaderparser003.phpt;h=1216fac16797196b093ad8f235979cd8a8a7ba07;hp=e1954e7a0a02011fc665cccea721a4c4e3a660ea;hb=5016399a1e84ca8d23fa74934300e703155e586b;hpb=eafbe5359bfb82233e5591147dc589cb957562c6 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);