]> granicus.if.org Git - php/commitdiff
add check for setlocale() and sv_SE to SKIPIF section
authorAntony Dovgal <tony2001@php.net>
Tue, 19 Dec 2006 20:46:48 +0000 (20:46 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 19 Dec 2006 20:46:48 +0000 (20:46 +0000)
ext/soap/tests/bugs/bug39815.phpt

index c9695d7a418e40b9aa778f15073e816b3cf06fb8..3400e9d0c629dfd978542e3b435119a479c0b20d 100755 (executable)
@@ -1,7 +1,11 @@
 --TEST--
 Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independent)
 --SKIPIF--
-<?php require_once('skipif.inc'); ?>
+<?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');
+?>
 --FILE--
 <?php
 function test(){