1--TEST--
2Check how textdomain() with wrong parameters behaves.
3--SKIPIF--
4<?php
5	if (!extension_loaded("gettext")) {
6		die("skip\n");
7	}
8	if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
9		die("skip en_US.UTF-8 locale not supported.");
10	}
11?>
12--FILE--
13<?php // $Id$
14
15chdir(dirname(__FILE__));
16setlocale(LC_ALL, 'en_US.UTF-8');
17bindtextdomain ("messages", "./locale");
18textdomain (array());
19
20?>
21--EXPECTF--
22Warning: textdomain() expects parameter 1 to be string, array given in %s on line 6
23--CREDITS--
24Christian Weiske, cweiske@php.net
25PHP Testfest Berlin 2009-05-09