prepare v4.2.5
[m6w6/ext-http] / tests / urlparser006.phpt
index e369490f0586da548eb1d22797846fc2ab9c8e98..1ef4c593feb5ab1e7704e6de687ab6c8c7138f94 100644 (file)
@@ -5,13 +5,15 @@ url parser multibyte/locale/idna
 include "skipif.inc";
 if (!defined("http\\Url::PARSE_MBLOC") or
        !defined("http\\Url::PARSE_TOIDN_2003") or
-       !stristr(setlocale(LC_CTYPE, NULL), ".utf")) {
+       !utf8locale()) {
        die("skip need http\\Url::PARSE_MBLOC|http\\Url::PARSE_TOIDN_2003 support and LC_CTYPE=*.UTF-8");
 }
 ?>
 --FILE--
 <?php
 echo "Test\n";
+include "skipif.inc";
+utf8locale();
 
 $urls = array(
        "s\xc3\xa7heme:",