Bug #73322 [Asn]: mb_convert_variables detects recursive reference incorrectly

From: Date: Sun, 16 Oct 2016 03:07:30 +0000
Subject: Bug #73322 [Asn]: mb_convert_variables detects recursive reference incorrectly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204820@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 detects recursive reference incorrectly Status: Assigned Type: Bug Package: mbstring related Operating System: Irrelevant PHP Version: Irrelevant Assigned To: yohgaki Block user comment: N Private report: N New Comment: PR is made. PHP 5.6 has some issues also, but I would like to leave 5.6 as it is now. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#204820) next »