<?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:",
include "skipif.inc";
if (!defined("http\\Url::PARSE_MBLOC") or
!defined("http\\Url::PARSE_TOIDN_2003") or
- !stristr(setlocale(LC_CTYPE, NULL), ".utf")) {
+ !stristr(setlocale(LC_CTYPE, "C.UTF-8"), ".utf")) {
die("skip need http\\Url::PARSE_MBLOC|http\\Url::PARSE_TOIDN_2003 support and LC_CTYPE=*.UTF-8");
}
?>
--FILE--
<?php
echo "Test\n";
+setlocale(LC_CTYPE, "C.UTF-8");
$urls = array(
"s\xc3\xa7heme:",
<?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(
"http://mike:paßwort@𐌀𐌁𐌂.it/for/€/?by=¢#ø"
include "skipif.inc";
if (!defined("http\\Url::PARSE_MBLOC") or
!defined("http\\Url::PARSE_TOIDN") or
- !stristr(setlocale(LC_CTYPE, NULL), ".utf")) {
+ !stristr(setlocale(LC_CTYPE, "C.UTF-8"), ".utf")) {
die("skip need http\\Url::PARSE_MBLOC|http\Url::PARSE_TOIDN support and LC_CTYPE=*.UTF-8");
}
--FILE--
<?php
echo "Test\n";
+setlocale(LC_CTYPE, "C.UTF-8");
$urls = array(
"http://mike:paßwort@𐌀𐌁𐌂.it/for/€/?by=¢#ø"