1--TEST--
2Test if bindtextdomain() returns string id if no directory path is set(if directory path is 'null')
3--SKIPIF--
4<?php
5if (!extension_loaded("gettext")) {
6    die("skip gettext extension is not loaded.\n");
7}
8if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
9    die("skip en_US.UTF-8 locale not supported.");
10}
11--FILE--
12<?php
13$base_dir = dirname(__FILE__);
14chdir($base_dir);
15setlocale(LC_ALL, 'en_US.UTF-8');
16bindtextdomain('messages',null);
17var_dump(gettext('Basic test'));
18bindtextdomain('messages', './locale');
19var_dump(gettext('Basic test'));
20
21?>
22--EXPECTF--
23string(10) "Basic test"
24string(12) "A basic test"
25--CREDIT--
26Moritz Neuhaeuser, info@xcompile.net
27PHP Testfest Berlin 2009-05-09
28