--SKIPIF--
<?php
include 'skip.inc';
-checkver(5);
+checkmin(5);
?>
--FILE--
<?php
printf("%2d: %s\n", $i, get_class($x));
}
}
-try {
- $tmp = http_get(null);
-} catch (HttpRequestException $x) {
- printf("%s (%d)\n", $x->getMessage(), $x->getCode());
+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 (8)\n";
}
echo "Done\n";
?>
10: HttpSocketException
11: HttpResponseException
12: HttpUrlException
-Could not perform request: URL using bad/illegal format or missing URL (8)
+URL using bad/illegal format or missing URL (8)
Done