1--TEST--
2Test mb_internal_encoding() function : basic functionality
3--INI--
4default_charset=""
5input_encoding="ISO-8859-1"
6output_encoding="ISO-8859-1"
7internal_encoding="ISO-8859-1"
8--EXTENSIONS--
9mbstring
10--FILE--
11<?php
12/*
13 * Test basic functionality of mb_internal_encoding
14 */
15
16echo "*** Testing mb_internal_encoding() : basic functionality ***\n";
17
18var_dump(ini_get('default_charset'));
19var_dump(ini_get('input_encoding'));
20var_dump(ini_get('output_encoding'));
21var_dump(ini_get('internal_encoding'));
22var_dump(ini_get('mbstring.http_input'));
23var_dump(ini_get('mbstring.http_output'));
24var_dump(ini_get('mbstring.internal_encoding'));
25
26var_dump(mb_internal_encoding());   //default internal encoding
27var_dump(mb_internal_encoding('UTF-8'));    //change internal encoding to UTF-8
28var_dump(mb_internal_encoding());    //check internal encoding is now set to UTF-8
29
30echo "Done";
31?>
32--EXPECT--
33*** Testing mb_internal_encoding() : basic functionality ***
34string(0) ""
35string(10) "ISO-8859-1"
36string(10) "ISO-8859-1"
37string(10) "ISO-8859-1"
38string(0) ""
39string(0) ""
40string(0) ""
41string(10) "ISO-8859-1"
42bool(true)
43string(5) "UTF-8"
44Done
45