Files
php-memcached/tests/locale_float.phpt
Pavel Djundik 7348cc11f7 Move working tests up a folder (#503)
Tests in the experimental/ folder were not executed on CI. The ones that work move up, the few
that remain in experimental/ need further investigation to get working or remove.
2023-04-27 08:35:07 -07:00

25 lines
482 B
PHP

--TEST--
Float should not consider locale
--SKIPIF--
<?php
include "skipif.inc";
if (!setlocale(LC_NUMERIC, "fi_FI", 'sv_SV', 'nl_NL')) {
die("skip no suitable locale");
}
--FILE--
<?php
include dirname(__FILE__) . '/config.inc';
$memcache = memc_get_instance ();
setlocale(LC_NUMERIC,
"fi_FI", 'sv_SV', 'nl_NL');
var_dump($memcache->set('test', 13882.1332451));
$n = $memcache->get('test');
setlocale(LC_NUMERIC, "C");
var_dump($n);
--EXPECT--
bool(true)
float(13882.1332451)