mirror of
https://github.com/php/php-src.git
synced 2024-10-04 00:06:16 +00:00
18 lines
396 B
PHP
18 lines
396 B
PHP
--TEST--
|
|
Check how gettext() with wrong parameters behaves.
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("gettext")) {
|
|
die("skip extension gettext not loaded\n");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
gettext (array());
|
|
?>
|
|
--EXPECTF--
|
|
Warning: gettext() expects parameter 1 to be %binary_string_optional%, array given in %s on line 2
|
|
--CREDITS--
|
|
Moritz Neuhaeuser, info@xcompile.net
|
|
PHP Testfest Berlin 2009-05-09
|