2 crash with bad url passed to http\Message::setRequestUrl()
4 <?php include "skipif.inc"; ?>
15 foreach ($urls as $url) {
17 $c = new http\Client\Request;
18 $c->setRequestUrl($url);
19 printf("OK: %s\n", $url);
20 } catch (Exception $e) {
21 printf("%s\n", $e->getMessage());
29 http\Message::setRequestUrl(): Failed to parse host; unexpected '.' at pos 0 in '.foo.bar'
30 http\Message::setRequestUrl(): Failed to parse host; unexpected '.' at pos 4 in 'foo..bar'