1--TEST-- 2Test if bindtextdomain() errors if the domain is empty. 3--SKIPIF-- 4<?php 5if (!extension_loaded("gettext")) { 6 die("skip gettext extension is not loaded.\n"); 7} 8?> 9--FILE-- 10<?php 11 12chdir(__DIR__); 13 14try { 15 bindtextdomain('', 'foobar'); 16} catch (ValueError $exception) { 17 echo $exception->getMessage() . "\n"; 18} 19 20?> 21--EXPECT-- 22bindtextdomain(): Argument #1 ($domain) cannot be empty 23--CREDITS-- 24Till Klampaeckel, till@php.net 25PHP Testfest Berlin 2009-05-09 26