- add second host header
[m6w6/ext-http] / tests / parse_headers_001.phpt
index 61ee93e2ebe1426e928b776654f183172497eb21..cb75a0e63acb892b790ad19ef51da35d9fe66c3e 100644 (file)
@@ -8,6 +8,7 @@ include 'skip.inc';
 <?php
 print_r(http_parse_headers(
 "Host: localhost\r\n".
+"Host: ambigious\r\n".
 "Nospace:here\r\n".
 "Muchspace:  there   \r\n".
 "Empty:\r\n".
@@ -26,7 +27,12 @@ X-Powered-By: PHP/%s
 
 Array
 (
-    [Host] => localhost
+    [Host] => Array
+        (
+            [0] => localhost
+            [1] => ambigious
+        )
+
     [Nospace] => here
     [Muchspace] => there
     [Empty] =>