projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
This commit was manufactured by cvs2svn to create tag 'RELEASE_0_5_0'.
[m6w6/ext-http]
/
tests
/
040_chunked_decode.phpt
1
--TEST--
2
http_chunked_decode()
3
--SKIPIF--
4
<?php
5
extension_loaded('http') or die('ext/http not available');
6
strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
7
?>
8
--FILE--
9
<?php
10
$data =
11
"02\r\n".
12
"ab\r\n".
13
"03\r\n".
14
"a\nc\r\n".
15
"04\r\n".
16
"abcd\r\n".
17
"0\r\n".
18
"abracadabra\n";
19
var_dump(http_chunked_decode($data));
20
?>
21
--EXPECTF--
22
Content-type: text/html
23
X-Powered-By: PHP/%s
24
25
string(9) "aba
26
cabcd"