better errors from the headers parser
[m6w6/ext-http] / tests / header007.phpt
index 7f6f9eb467dc5c53e7417c1504a3e251e0bc3079..d565e79192d7205b22498dbe935278c08ad6c6fb 100644 (file)
@@ -10,7 +10,6 @@ include "skipif.inc";
 echo "Test\n";
 
 $header = "wass\nup";
-/* this generates two warnings because of the LF ;) */
 http\Header::parse($header);
 
 ?>
@@ -18,7 +17,5 @@ Done
 --EXPECTF--
 Test
 
-Warning: http\Header::parse(): Could not parse headers in %s on line %d
-
-Warning: http\Header::parse(): Could not parse headers in %s on line %d
+Warning: http\Header::parse(): Failed to parse headers: unexpected character '\012' at pos 4 of 'wass\nup' in %s on line %d
 Done