From: Moriyoshi Koizumi Date: Wed, 23 Jun 2004 22:20:44 +0000 (+0000) Subject: - Modify test case for wider coverage. X-Git-Tag: php-4.3.9RC1~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=384900bd89f405cd0ab5f057f3ba047eda33388c;p=php - Modify test case for wider coverage. --- 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) + } +}