mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
16 lines
410 B
PHP
16 lines
410 B
PHP
--TEST--
|
|
Test if bindtextdomain() errors if the domain is empty.
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("gettext")) {
|
|
die("skip gettext extension is not loaded.\n");
|
|
}
|
|
--FILE--
|
|
<?php
|
|
chdir(dirname(__FILE__));
|
|
bindtextdomain('', 'foobar');
|
|
--EXPECTF--
|
|
Warning: The first parameter of bindtextdomain must not be empty in %s on line %d
|
|
--CREDITS--
|
|
Till Klampaeckel, till@php.net
|
|
PHP Testfest Berlin 2009-05-09 |