--TEST--
Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independent)
--SKIPIF--
--FILE--
server = new SoapServer($wsdl, $options);
$this->server->addFunction('test');
}
function __doRequest($request, $location, $action, $version) {
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,"sv_SE");
var_dump($x->test());
echo $x->__getLastResponse();
setlocale(LC_ALL,"en_US");
var_dump($x->test());
echo $x->__getLastResponse();
--EXPECT--
float(123,456)
123.456
float(123.456)
123.456