12345678910111213141516171819202122232425262728 |
- --TEST--
- Check if textdomain() returns the new domain
- --EXTENSIONS--
- gettext
- --SKIPIF--
- <?php
-
- if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
- die("skip en_US.UTF-8 locale not supported.");
- }
- ?>
- --FILE--
- <?php
- chdir(__DIR__);
- setlocale(LC_ALL, 'en_US.UTF-8');
- bindtextdomain ("messages", "./locale");
- echo textdomain('test'), "\n";
- echo textdomain(null), "\n";
- echo textdomain('foo'), "\n";
- ?>
- --EXPECT--
- test
- test
- foo
- --CREDITS--
- Christian Weiske, cweiske@php.net
- PHP Testfest Berlin 2009-05-09
|