diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2004-06-26 05:39:00 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2004-06-26 05:39:00 +0000 |
| commit | b33f7ab6715a9842e507a9ed54f507c81b655e52 (patch) | |
| tree | c11504adc99f4f57db98347db91f8bc600df26b7 /ext/mbstring/tests | |
| parent | f125cb60ccfea46bcf82accfe38955518e7bc2ca (diff) | |
| download | php-git-b33f7ab6715a9842e507a9ed54f507c81b655e52.tar.gz | |
- Fix bug #28466 (mbstring_convert_variables() problem).
Diffstat (limited to 'ext/mbstring/tests')
| -rw-r--r-- | ext/mbstring/tests/bug26639.phpt | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/ext/mbstring/tests/bug26639.phpt b/ext/mbstring/tests/bug26639.phpt index 651e6f45be..a87e912ba6 100644 --- a/ext/mbstring/tests/bug26639.phpt +++ b/ext/mbstring/tests/bug26639.phpt @@ -33,7 +33,7 @@ unset($c); $a = "あいうえお"; $b = array(&$a); $c = $b; -mb_convert_variables("euc-jp", "shift_jis", $c); +mb_convert_variables("EUC-JP", "Shift_JIS", $c); debug_zval_dump($b); debug_zval_dump($c); unset($a); @@ -43,7 +43,7 @@ unset($c); $a = "あいうえお"; $b = array($a); $c = &$b; -mb_convert_variables("euc-jp", "shift_jis", $c); +mb_convert_variables("EUC-JP", "Shift_JIS", $c); debug_zval_dump($b); debug_zval_dump($c); unset($a); @@ -53,7 +53,17 @@ unset($c); $a = "あいうえお"; $b = array(&$a); $c = &$b; -mb_convert_variables("euc-jp", "shift_jis", $c); +mb_convert_variables("EUC-JP", "Shift_JIS", $c); +debug_zval_dump($b); +debug_zval_dump($c); +unset($a); +unset($b); +unset($c); + +$a = array(array("あいうえお")); +$b = $a; +$c = $b; +mb_convert_variables("EUC-JP", "Shift_JIS", $c); debug_zval_dump($b); debug_zval_dump($c); unset($a); @@ -97,4 +107,17 @@ array(1) refcount(1){ [0]=> string(10) "、「、、、ヲ、ィ、ェ" refcount(2) } - +array(1) refcount(3){ + [0]=> + array(1) refcount(1){ + [0]=> + string(10) "あいうえお" refcount(1) + } +} +array(1) refcount(2){ + [0]=> + array(1) refcount(1){ + [0]=> + string(10) "、「、、、ヲ、ィ、ェ" refcount(1) + } +} |
