]> granicus.if.org Git - php/commitdiff
- Modify test case for wider coverage.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 23 Jun 2004 22:20:44 +0000 (22:20 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 23 Jun 2004 22:20:44 +0000 (22:20 +0000)
ext/mbstring/tests/bug26639.phpt

index 651e6f45bed054bc84d5fe573c23eadf3a46b9c2..a87e912ba60d3268a03da6f52a5a54b2f0a6cd6b 100644 (file)
@@ -33,7 +33,7 @@ unset($c);
 $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);
@@ -43,7 +43,7 @@ unset($c);
 $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);
@@ -53,7 +53,17 @@ unset($c);
 $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);
@@ -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) "\82 \82¢\82¤\82¦\82¨" refcount(1)
+  }
+}
+array(1) refcount(2){
+  [0]=>
+  array(1) refcount(1){
+    [0]=>
+    string(10) "¤¢¤¤¤¦¤¨¤ª" refcount(1)
+  }
+}