<?php
include "skipif.inc";
if (!defined("http\\Url::PARSE_MBLOC") or
- !defined("http\\Url::PARSE_IDN") or
+ !defined("http\\Url::PARSE_TOIDN_2003") or
!stristr(setlocale(LC_CTYPE, NULL), ".utf")) {
- die("skip need http\\Url::PARSE_MBLOC|http\\Url::PARSE_IDN support and LC_CTYPE=*.UTF-8");
+ die("skip need http\\Url::PARSE_MBLOC|http\\Url::PARSE_TOIDN_2003 support and LC_CTYPE=*.UTF-8");
}
?>
--FILE--
foreach ($urls as $url) {
printf("\n%s\n", $url);
- var_dump(http\Url::parse($url, http\Url::PARSE_MBLOC|http\Url::PARSE_IDN));
+ var_dump(new http\Url($url, null, http\Url::PARSE_MBLOC|http\Url::PARSE_TOIDN_2003));
}
?>
DONE