mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
fix tests on freebsd
This commit is contained in:
parent
46ce362ff3
commit
a180abdbfd
@ -6,14 +6,14 @@ default_charset=
|
||||
mbstring.internal_encoding=none
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$result = (bool)setlocale(LC_CTYPE, "ru_RU.koi8r");
|
||||
$result = (bool)setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
|
||||
if (!$result || preg_match('/koi8/i', setlocale(LC_CTYPE, 0)) == 0) {
|
||||
die("skip setlocale() failed\n");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
setlocale(LC_CTYPE, "ru_RU.koi8r");
|
||||
setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
|
||||
$str = "ÒÏÓËÏÛÎÙÊ";
|
||||
var_dump($str, htmlentities($str, ENT_QUOTES, ''));
|
||||
?>
|
||||
|
@ -2,14 +2,14 @@
|
||||
Bug #12647 (Locale settings affecting float parsing)
|
||||
--SKIPIF--
|
||||
<?php # try to activate a german locale
|
||||
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge") === FALSE) {
|
||||
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1") === FALSE) {
|
||||
print "skip";
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
# activate the german locale
|
||||
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge");
|
||||
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1");
|
||||
|
||||
echo (float)"3.14", "\n";
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user