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