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

From: Date: Mon, 19 Dec 2016 14:46:55 +0000
Subject: Bug #73322 [Com]: mb_convert_variables detects recursive reference incorrectly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206133@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 Comment by: msangapu at microsoft dot com 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: 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? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#206133) next »