projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
PHP-8.1 compat
[m6w6/ext-http]
/
tests
/
urlparser004.phpt
diff --git
a/tests/urlparser004.phpt
b/tests/urlparser004.phpt
index 9172138eeb971b7330ae7a401a047f37e2712cf5..4eab3b749a053169fd22bc4dac68fc40002fa5ba 100644
(file)
--- a/
tests/urlparser004.phpt
+++ b/
tests/urlparser004.phpt
@@
-4,14
+4,15
@@
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, "C.UTF-8"), "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");
+include "skipif.inc";
+utf8locale();
$urls = array(
"s\xc3\xa7heme:",
$urls = array(
"s\xc3\xa7heme:",