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 build failure when strncmp() is a macro
[m6w6/ext-http]
/
tests
/
chunked_decode_001.phpt
diff --git
a/tests/chunked_decode_001.phpt
b/tests/chunked_decode_001.phpt
index dd53ea4a27ed0c7702d8249336561dfb48968f41..2575704c547f227c3d34efdfef21e4ce84c6e538 100644
(file)
--- a/
tests/chunked_decode_001.phpt
+++ b/
tests/chunked_decode_001.phpt
@@
-1,25
+1,25
@@
--TEST--
--TEST--
-http_chunked_decode()
+http_chunked_decode()
"\r\n"
--SKIPIF--
--SKIPIF--
-<?php
+<?php
include 'skip.inc';
?>
--FILE--
<?php
include 'skip.inc';
?>
--FILE--
<?php
-$data =
+echo "-TEST\n";
+$data =
"02\r\n".
"ab\r\n".
"02\r\n".
"ab\r\n".
-"03\r\n".
-"a\nc\r\n".
"04\r\n".
"04\r\n".
-"abcd\r\n".
+"ra\nc\r\n".
+"06\r\n".
+"adabra\r\n".
"0\r\n".
"0\r\n".
-"
abracadabra
\n";
+"
nothing
\n";
var_dump(http_chunked_decode($data));
?>
--EXPECTF--
var_dump(http_chunked_decode($data));
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
+%sTEST
+string(12) "abra
+cadabra"
-string(9) "aba
-cabcd"