- Fixed build on php-trunk
[m6w6/ext-http] / tests / parse_headers_001.phpt
index cb75a0e63acb892b790ad19ef51da35d9fe66c3e..c81e8839eef46508316090201bd67a17c04a8d95 100644 (file)
@@ -1,11 +1,12 @@
 --TEST--
 http_parse_headers()
 --SKIPIF--
-<?php 
+<?php
 include 'skip.inc';
 ?>
 --FILE--
 <?php
+echo "-TEST\n";
 print_r(http_parse_headers(
 "Host: localhost\r\n".
 "Host: ambigious\r\n".
@@ -13,18 +14,14 @@ print_r(http_parse_headers(
 "Muchspace:  there   \r\n".
 "Empty:\r\n".
 "Empty2: \r\n".
-": invalid\r\n".
-" : bogus\r\n".
 "Folded: one\r\n".
 "\ttwo\r\n".
-"  three\r\n".
+"  three\r\n\r\n".
 "stop\r\n"
 ));
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%aTEST
 Array
 (
     [Host] => Array
@@ -40,4 +37,5 @@ Array
     [Folded] => one
        two
   three
-)
\ No newline at end of file
+)
+