- added missing http_request() function stub
[m6w6/ext-http] / tests / chunked_decode_004.phpt
1 --TEST--
2 http_chunked_decode() truncated message ending with NUL after a chunk
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 ?>
7 --FILE--
8 <?php
9 echo "-TEST\n";
10 $data =
11 "02\r\n".
12 "ab\r\n".
13 "04\r\n".
14 "ra\nc\r\n".
15 "06\r\n".
16 "adabra\r\n".
17 "0c\r\n".
18 "\nall we got\n";
19 var_dump(http_chunked_decode($data));
20 ?>
21 --EXPECTF--
22 %sTEST
23 string(24) "abra
24 cadabra
25 all we got
26 "