Bug #73322 [Ver->Asn]: mb_convert_variables is problem
| From: | yohgaki@php.net | Date: | Fri, 14 Oct 2016 23:36:24 +0000 |
| Subject: | Bug #73322 [Ver->Asn]: mb_convert_variables is problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204785@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: yohgaki@php.net
Reported by: townwear at gmail dot com
Summary: mb_convert_variables is problem
-Status: Verified
+Status: Assigned
Type: Bug
Package: mbstring related
-Operating System: CentOS7
+Operating System: Irrelevant
-PHP Version: 7.0.12
+PHP Version: Irrelevant
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
The code has obvious issue...
I'll fix it.
Previous Comments:
------------------------------------------------------------------------
[2016-10-14 15:57:43] cmb@php.net
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.
------------------------------------------------------------------------
[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