printf("%2d: %s\n", $i, get_class($x));
}
}
-if (http_support(HTTP_SUPPORT_REQUESTS)) {
- try {
- $tmp = http_get(null);
- } catch (HttpRequestException $x) {
- printf("%s (%d)\n", $x->getMessage(), $x->getCode());
- }
-} else {
- echo "URL using bad/illegal format or missing URL; ((null)) (8)\n";
-}
echo "Done\n";
?>
--EXPECTF--
10: HttpSocketException
11: HttpResponseException
12: HttpUrlException
-URL using bad/illegal format or missing URL; ((null)) (8)
Done