projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix incompatible pointer types
[m6w6/ext-http]
/
tests
/
headerparser003.phpt
diff --git
a/tests/headerparser003.phpt
b/tests/headerparser003.phpt
index e1954e7a0a02011fc665cccea721a4c4e3a660ea..1216fac16797196b093ad8f235979cd8a8a7ba07 100644
(file)
--- 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);
$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",
"GET / HTTP/1.1\n",
"Host: localhost","\n",
"Content","-length: 3\n",
"\n",
-
]
;
+
)
;
while ($headers) {
$line = array_shift($headers);
while ($headers) {
$line = array_shift($headers);