projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
better errors from the headers parser
[m6w6/ext-http]
/
tests
/
header007.phpt
diff --git
a/tests/header007.phpt
b/tests/header007.phpt
index 7f6f9eb467dc5c53e7417c1504a3e251e0bc3079..d565e79192d7205b22498dbe935278c08ad6c6fb 100644
(file)
--- a/
tests/header007.phpt
+++ b/
tests/header007.phpt
@@
-10,7
+10,6
@@
include "skipif.inc";
echo "Test\n";
$header = "wass\nup";
echo "Test\n";
$header = "wass\nup";
-/* this generates two warnings because of the LF ;) */
http\Header::parse($header);
?>
http\Header::parse($header);
?>
@@
-18,7
+17,5
@@
Done
--EXPECTF--
Test
--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
Done