From 384900bd89f405cd0ab5f057f3ba047eda33388c Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 23 Jun 2004 22:20:44 +0000 Subject: [PATCH] - Modify test case for wider coverage. --- ext/mbstring/tests/bug26639.phpt | 31 +++++++++++++++++++++++++++---- 1 file 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) + } +} -- 2.40.0