1--TEST--
2Gettext basic test with en_US locale that should be on nearly every system
3--EXTENSIONS--
4gettext
5--SKIPIF--
6<?php
7
8    if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
9        die("skip en_US.UTF-8 locale not supported.");
10    }
11?>
12--FILE--
13<?php
14
15chdir(__DIR__);
16putenv('LC_ALL=en_US.UTF-8');
17setlocale(LC_ALL, 'en_US.UTF-8');
18bindtextdomain ("messages", "./locale");
19textdomain ("messages");
20echo gettext("Basic test"), "\n";
21echo _("Basic test"), "\n";
22
23?>
24--EXPECT--
25A basic test
26A basic test
27--CREDITS--
28Christian Weiske, cweiske@php.net
29PHP Testfest Berlin 2009-05-09
30