1--TEST-- 2Bug #53251 (bindtextdomain with null dir doesn't return old value) 3--SKIPIF-- 4<?php 5if (!extension_loaded('gettext')) die('skip gettext extension not available'); 6?> 7--FILE-- 8<?php 9var_dump(is_string(bindtextdomain('foo', null))); 10$dir = bindtextdomain('foo', '.'); 11var_dump(bindtextdomain('foo', null) === $dir); 12 13var_dump(bind_textdomain_codeset('foo', null)); 14var_dump(bind_textdomain_codeset('foo', 'UTF-8')); 15var_dump(bind_textdomain_codeset('foo', null)); 16 17?> 18--EXPECT-- 19bool(true) 20bool(true) 21bool(false) 22string(5) "UTF-8" 23string(5) "UTF-8" 24