release 1.7.5
[m6w6/ext-http] / tests / parse_message_001.phpt
index ac31338ebbfb90822afa14274a6c2da9d76914c4..a252d637459f114991e8385a321c9f093989a0e1 100644 (file)
@@ -9,9 +9,10 @@ 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