diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2009-09-14 04:11:29 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2009-09-14 04:11:29 +0000 |
commit | 6a0402413d3c36596fd40ef9124c984218df6bf0 (patch) | |
tree | 60493ce71344565ed2c44bb8bdae6c4c27bbad95 /ext/mbstring | |
parent | 2c388a4eaa7d6e2167311e70eb177dae8d6696b4 (diff) | |
download | php-git-6a0402413d3c36596fd40ef9124c984218df6bf0.tar.gz |
- Looks like bug #48697 has already been fixed in RC1.
Diffstat (limited to 'ext/mbstring')
-rw-r--r-- | ext/mbstring/tests/bug48697.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/mbstring/tests/bug48697.phpt b/ext/mbstring/tests/bug48697.phpt new file mode 100644 index 0000000000..42bbe9f5a8 --- /dev/null +++ b/ext/mbstring/tests/bug48697.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #48697 (mb_internal_encoding() value gets reset by parse_str() or mb_parse_str() +--SKIPIF-- +<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?> +--FILE-- +<?php +ini_set('mbstring.internal_encoding', 'ISO-8859-15'); +ini_set('mbstring.encoding_translation', true); +var_dump(mb_internal_encoding()); +mb_internal_encoding('UTF-8'); +var_dump(mb_internal_encoding()); +parse_str('a=b'); +var_dump(mb_internal_encoding()); +mb_internal_encoding('UTF-8'); +var_dump(mb_internal_encoding()); +parse_str('a=b'); +var_dump(mb_internal_encoding()); +?> +--EXPECT-- +string(11) "ISO-8859-15" +string(5) "UTF-8" +string(5) "UTF-8" +string(5) "UTF-8" +string(5) "UTF-8" |