cvs: php-src(PHP_4_3) /ext/mbstring/tests bug26639.phpt

From: Date: Wed, 23 Jun 2004 22:20:44 +0000
Subject: cvs: php-src(PHP_4_3) /ext/mbstring/tests bug26639.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27685@lists.php.net to get a copy of this message
moriyoshi Wed Jun 23 18:20:44 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/mbstring/tests bug26639.phpt Log: - Modify test case for wider coverage. http://cvs.php.net/diff.php/php-src/ext/mbstring/tests/bug26639.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u Index: php-src/ext/mbstring/tests/bug26639.phpt diff -u php-src/ext/mbstring/tests/bug26639.phpt:1.1.2.1 php-src/ext/mbstring/tests/bug26639.phpt:1.1.2.2 --- php-src/ext/mbstring/tests/bug26639.phpt:1.1.2.1 Thu Dec 18 04:52:50 2003 +++ php-src/ext/mbstring/tests/bug26639.phpt Wed Jun 23 18:20:44 2004 @@ -33,7 +33,7 @@ $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 @@ $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 @@ $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 @@ [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) + } +}

« previous php.cvs (#27685) next »