projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix tests
[m6w6/ext-http]
/
tests
/
urlparser010.phpt
diff --git
a/tests/urlparser010.phpt
b/tests/urlparser010.phpt
index ae63ae7b4050e4eba43b60049a565d9736e0342e..f5382085e17a481ac626c3fa0a50a75bdeb9058e 100644
(file)
--- a/
tests/urlparser010.phpt
+++ b/
tests/urlparser010.phpt
@@
-4,7
+4,7
@@
url parser multibyte/locale/topct
<?php
include "skipif.inc";
if (!defined("http\\Url::PARSE_MBLOC") or
<?php
include "skipif.inc";
if (!defined("http\\Url::PARSE_MBLOC") or
- !
stristr(setlocale(LC_CTYPE, NULL), ".utf"
)) {
+ !
utf8locale(
)) {
die("skip need http\\Url::PARSE_MBLOC support and LC_CTYPE=*.UTF-8");
}
die("skip need http\\Url::PARSE_MBLOC support and LC_CTYPE=*.UTF-8");
}
@@
-12,6
+12,7
@@
if (!defined("http\\Url::PARSE_MBLOC") or
--FILE--
<?php
echo "Test\n";
--FILE--
<?php
echo "Test\n";
+setlocale(LC_CTYPE, "C.UTF-8");
$urls = array(
"http://mike:paßwort@𐌀𐌁𐌂.it/for/€/?by=¢#ø"
$urls = array(
"http://mike:paßwort@𐌀𐌁𐌂.it/for/€/?by=¢#ø"