2 url parser multibyte/utf-8/idna
6 if (!defined("http\\Url::PARSE_TOIDN")) {
7 die("skip need http\\Url::PARSE_TOIDN support");
16 "s\xc3\xa7heme://h\xc6\x9fst",
17 "s\xc3\xa7heme://h\xc6\x9fst:23/päth/öf/fıle"
20 foreach ($urls as $url) {
21 printf("\n%s\n", $url);
22 var_dump(http\Url::parse($url, http\Url::PARSE_MBUTF8|http\Url::PARSE_TOIDN));
30 object(http\Url)#%d (8) {
50 object(http\Url)#%d (8) {
58 string(11) "xn--hst-kwb"
69 sçheme://hƟst:23/päth/öf/fıle
70 object(http\Url)#%d (8) {
78 string(11) "xn--hst-kwb"
82 string(16) "/päth/öf/fıle"