1--TEST--
2Test INI mbstring.internal_encoding basic - invalid encoding specified in INI
3--EXTENSIONS--
4mbstring
5--INI--
6mbstring.internal_encoding=BAD
7--FILE--
8<?php
9
10echo "*** Testing INI mbstring.internal_encoding: invalid encoding specified in INI ***\n";
11
12echo mb_internal_encoding()."\n";
13echo ini_get('mbstring.internal_encoding')."\n";
14mb_internal_encoding('UTF-8');
15echo mb_internal_encoding()."\n";
16echo ini_get('mbstring.internal_encoding')."\n";
17
18?>
19--EXPECT--
20Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
21
22Warning: PHP Startup: Unknown encoding "BAD" in ini setting in Unknown on line 0
23*** Testing INI mbstring.internal_encoding: invalid encoding specified in INI ***
24UTF-8
25BAD
26UTF-8
27BAD
28