Bug #73322 [Asn->Csd]: mb_convert_variables detects recursive reference incorrectly
| From: | cmb@php.net | Date: | Fri, 18 Dec 2020 13:58:29 +0000 |
| Subject: | Bug #73322 [Asn->Csd]: mb_convert_variables detects recursive reference incorrectly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231157@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 detects recursive reference
incorrectly
-Status: Assigned
+Status: Closed
Type: Bug
Package: mbstring related
Operating System: Irrelevant
PHP Version: Irrelevant
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
According to <https://3v4l.org/IA2Cp#v7012> this is
fixed as of
PHP 7.3.0. Older versions are out of active support for quite
some time now, so the fix will not be backported.
Previous Comments:
------------------------------------------------------------------------
[2016-12-19 14:46:54] msangapu at microsoft dot com
Hello, we have customers on MS Azure using 5.6.28 and facing these warnings. I see from the comments
that this will be fixed in PHP 7.x. Can you please pull this fix into 5.6.x branch as well?
------------------------------------------------------------------------
[2016-10-16 03:07:29] yohgaki@php.net
PR is made. PHP 5.6 has some issues also, but I would like to leave 5.6 as it is now.
------------------------------------------------------------------------
[2016-10-14 23:36:24] yohgaki@php.net
The code has obvious issue...
I'll fix it.
------------------------------------------------------------------------
[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