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