release 1.7.6
[m6w6/ext-http] / tests / chunked_decode_001.phpt
index dd53ea4a27ed0c7702d8249336561dfb48968f41..3d65dbfdfa503246d97cc75e422ad5a68c6b5a8c 100644 (file)
@@ -1,25 +1,25 @@
 --TEST--
-http_chunked_decode()
+http_chunked_decode() "\r\n"
 --SKIPIF--
-<?php 
+<?php
 include 'skip.inc';
 ?>
 --FILE--
 <?php
-$data = 
+echo "-TEST\n";
+$data =
 "02\r\n".
 "ab\r\n".
-"03\r\n".
-"a\nc\r\n".
 "04\r\n".
-"abcd\r\n".
+"ra\nc\r\n".
+"06\r\n".
+"adabra\r\n".
 "0\r\n".
-"abracadabra\n";
+"nothing\n";
 var_dump(http_chunked_decode($data));
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
+%aTEST
+string(12) "abra
+cadabra"
 
-string(9) "aba
-cabcd"