restore php-5.3 compatibility
[m6w6/ext-http] / tests / headerparser003.phpt
index e1954e7a0a02011fc665cccea721a4c4e3a660ea..1216fac16797196b093ad8f235979cd8a8a7ba07 100644 (file)
@@ -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);