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