$a = "\82 \82¢\82¤\82¦\82¨";
$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);
$a = "\82 \82¢\82¤\82¦\82¨";
$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);
$a = "\82 \82¢\82¤\82¦\82¨";
$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("\82 \82¢\82¤\82¦\82¨"));
+$b = $a;
+$c = $b;
+mb_convert_variables("EUC-JP", "Shift_JIS", $c);
debug_zval_dump($b);
debug_zval_dump($c);
unset($a);
[0]=>
string(10) "¤¢¤¤¤¦¤¨¤ª" refcount(2)
}
-
+array(1) refcount(3){
+ [0]=>
+ array(1) refcount(1){
+ [0]=>
+ string(10) "\82 \82¢\82¤\82¦\82¨" refcount(1)
+ }
+}
+array(1) refcount(2){
+ [0]=>
+ array(1) refcount(1){
+ [0]=>
+ string(10) "¤¢¤¤¤¦¤¨¤ª" refcount(1)
+ }
+}