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