--TEST-- Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independent) --EXTENSIONS-- soap --SKIPIF-- --INI-- precision=14 soap.wsdl_cache_enabled=0 --FILE-- server = new SoapServer($wsdl, $options); $this->server->addFunction('test'); } function __doRequest($request, $location, $action, $version, $one_way = 0): ?string { ob_start(); $this->server->handle($request); $response = ob_get_contents(); ob_end_clean(); return $response; } } $x = new LocalSoapClient(NULL,array('location'=>'test://', 'uri'=>'http://testuri.org', "trace"=>1)); setlocale(LC_ALL,"de_DE","de_DE.ISO8859-1"); var_dump($x->test()); echo $x->__getLastResponse(); setlocale(LC_ALL, "C"); var_dump($x->test()); echo $x->__getLastResponse(); ?> --EXPECT-- float(123.456) 123.456 float(123.456) 123.456