Bug #73322 [Opn->Ver]: mb_convert_variables is problem
| From: | cmb@php.net | Date: | Fri, 14 Oct 2016 15:57:43 +0000 |
| Subject: | Bug #73322 [Opn->Ver]: mb_convert_variables is problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204778@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73322&edit=1
ID: 73322
Updated by: cmb@php.net
Reported by: townwear at gmail dot com
Summary: mb_convert_variables is problem
-Status: Open
+Status: Verified
Type: Bug
Package: mbstring related
Operating System: CentOS7
PHP Version: 7.0.12
-Assigned To:
+Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
Confirmed: <https://3v4l.org/IA2Cp#v7012>. The
regression has
been introduced by fixing bug #66964.
Yasuo, can you please have a look at this issue.
Previous Comments:
------------------------------------------------------------------------
[2016-10-14 14:48:20] townwear at gmail dot com
Description:
------------
PHP-7.0.11 is no problem.
$ php -r '$x = ["a", "b"]; mb_convert_variables("UTF-8",
"SJIS,EUC-JP", $x);'
// no output
PHP-7.0.12 is problem.
$ php -r '$x = ["a", "b"]; mb_convert_variables("UTF-8",
"SJIS,EUC-JP", $x);'
PHP Warning: mb_convert_variables(): Cannot handle recursive references in Command line code on
line 1
Warning: mb_convert_variables(): Cannot handle recursive references in Command line code on line 1
Test script:
---------------
$ php -r '$x = ["a", "b"]; mb_convert_variables("UTF-8",
"SJIS,EUC-JP", $x);'
Expected result:
----------------
// no output
Actual result:
--------------
PHP Warning: mb_convert_variables(): Cannot handle recursive references in Command line code on
line 1
Warning: mb_convert_variables(): Cannot handle recursive references in Command line code on line 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73322&edit=1