summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-12-19 21:39:48 +0000
committerAntony Dovgal <tony2001@php.net>2006-12-19 21:39:48 +0000
commit1ef3ca7bf7d22c6b98111ce0e0fbc694daa5359f (patch)
tree2b5ac81d1e8057dae932e769c07e4ea5f8942b43
parent949a0934c8f35afe8f5c0aee1e622864db19ef93 (diff)
downloadphp-git-1ef3ca7bf7d22c6b98111ce0e0fbc694daa5359f.tar.gz
on FreeBSD these locales have different names
-rwxr-xr-xext/soap/tests/bugs/bug39815.phpt7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/soap/tests/bugs/bug39815.phpt b/ext/soap/tests/bugs/bug39815.phpt
index 9c978285b1..e23c6b96d1 100755
--- a/ext/soap/tests/bugs/bug39815.phpt
+++ b/ext/soap/tests/bugs/bug39815.phpt
@@ -4,7 +4,8 @@ Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independen
<?php
require_once('skipif.inc');
if (!function_exists('setlocale')) die('skip setlocale() not available');
-if (!@setlocale(LC_ALL, 'sv_SE')) die('skip sv_SE locale not available');
+if (!@setlocale(LC_ALL, 'sv_SE', 'sv_SE.ISO8859-1')) die('skip sv_SE locale not available');
+if (!@setlocale(LC_ALL, 'en_US', 'en_US.ISO8859-1')) die('skip en_US locale not available');
?>
--FILE--
<?php
@@ -31,10 +32,10 @@ class LocalSoapClient extends SoapClient {
$x = new LocalSoapClient(NULL,array('location'=>'test://',
'uri'=>'http://testuri.org',
"trace"=>1));
-setlocale(LC_ALL,"sv_SE");
+setlocale(LC_ALL,"sv_SE","sv_SE.ISO8859-1");
var_dump($x->test());
echo $x->__getLastResponse();
-setlocale(LC_ALL,"en_US");
+setlocale(LC_ALL,"en_US","en_US.ISO8859-1");
var_dump($x->test());
echo $x->__getLastResponse();
--EXPECT--