Skip to content

Commit 354eff7

Browse files
author
Ilia Alshanetsky
committed
MFH: Prevent test failure when fi_FI locale is not available.
1 parent 9a5f0ef commit 354eff7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ext/gettext/tests/gettext_basic.phpt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
--TEST--
22
Gettext basic test
33
--SKIPIF--
4-
<?php if (!extension_loaded("gettext")) print "skip"; ?>
4+
<?php
5+
if (!extension_loaded("gettext")) {
6+
die("skip\n");
7+
}
8+
if (!setlocale(LC_ALL, 'fi_FI')) {
9+
die("skip fi_FI locale not supported.");
10+
}
11+
?>
512
--FILE--
613
<?php // $Id$
714

0 commit comments

Comments
 (0)