--TEST--
http_parse_message()
--SKIPIF--
+<?php
include 'skip.inc';
-checkuri('www.google.com');
+checkurl('www.google.com');
+skipif(!http_support(HTTP_SUPPORT_REQUESTS), 'need curl support');
+?>
--FILE--
<?php
echo "-TEST\n";
-echo http_parse_message(http_get('http://www.google.com'))->body;
+$m = http_parse_message(http_get('http://www.google.com'));
+echo $m->body;
echo "Done\n";
--EXPECTF--
-%sTEST
-<HTML>%sThe document has moved%s</HTML>
+%aTEST
+<HTML>%aThe document has moved%a</HTML>
Done