--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5);
+checkmin("5.2.5");
?>
--FILE--
<?php
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; No URL set!\n ((null)) (8)\n";
-}
echo "Done\n";
?>
--EXPECTF--
-%sTEST
+%aTEST
1: HttpRuntimeException
2: HttpInvalidParamException
3: HttpHeaderException
10: HttpSocketException
11: HttpResponseException
12: HttpUrlException
-URL using bad/illegal format or missing URL; No URL set!
- ((null)) (8)
Done