2 url parser multibyte/locale/idna
6 if (!defined("http\\Url::PARSE_MBLOC") or
7 !defined("http\\Url::PARSE_TOIDN_2003") or
9 die("skip need http\\Url::PARSE_MBLOC|http\\Url::PARSE_TOIDN_2003 support and LC_CTYPE=*.UTF-8");
20 "s\xc3\xa7heme://h\xc6\x9fst",
21 "s\xc3\xa7heme://h\xc6\x9fst:23/päth/öf/fıle"
24 foreach ($urls as $url) {
25 printf("\n%s\n", $url);
26 var_dump(new http\Url($url, null, http\Url::PARSE_MBLOC|http\Url::PARSE_TOIDN_2003));
34 object(http\Url)#%d (8) {
54 object(http\Url)#%d (8) {
62 string(11) "xn--hst-kwb"
73 sçheme://hƟst:23/päth/öf/fıle
74 object(http\Url)#%d (8) {
82 string(11) "xn--hst-kwb"
86 string(16) "/päth/öf/fıle"