projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
back to dev
[m6w6/ext-http]
/
tests
/
urlparser004.phpt
diff --git
a/tests/urlparser004.phpt
b/tests/urlparser004.phpt
index 3aa57fd3daa4a99abc2d6441e571c60d4b81e10b..36d6983eed9e09bb4fc65f1331b42d5358c65621 100644
(file)
--- a/
tests/urlparser004.phpt
+++ b/
tests/urlparser004.phpt
@@
-4,13
+4,14
@@
url parser multibyte/locale
<?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");
}
?>
--FILE--
<?php
echo "Test\n";
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:",
$urls = array(
"s\xc3\xa7heme:",
@@
-20,7
+21,7
@@
$urls = array(
foreach ($urls as $url) {
printf("\n%s\n", $url);
foreach ($urls as $url) {
printf("\n%s\n", $url);
- var_dump(
http\Url::parse($ur
l, http\Url::PARSE_MBLOC));
+ var_dump(
new http\Url($url, nul
l, http\Url::PARSE_MBLOC));
}
?>
DONE
}
?>
DONE