projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- ensure we have string zvals in http_request_body_fill()
[m6w6/ext-http]
/
tests
/
chunked_decode_001.phpt
diff --git
a/tests/chunked_decode_001.phpt
b/tests/chunked_decode_001.phpt
index 27f750b1bfecc6e9ad96af0c305fc91953412889..2575704c547f227c3d34efdfef21e4ce84c6e538 100644
(file)
--- a/
tests/chunked_decode_001.phpt
+++ b/
tests/chunked_decode_001.phpt
@@
-1,5
+1,5
@@
--TEST--
--TEST--
-http_chunked_decode()
+http_chunked_decode()
"\r\n"
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
@@
-10,16
+10,16
@@
echo "-TEST\n";
$data =
"02\r\n".
"ab\r\n".
$data =
"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--
%sTEST
var_dump(http_chunked_decode($data));
?>
--EXPECTF--
%sTEST
-string(
9) "ab
a
-ca
bcd
"
+string(
12) "abr
a
+ca
dabra
"