mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 09:02:10 +01:00
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.
25 lines
482 B
PHP
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)
|