Bug #76661 [Ver->Csd]: mb_convert_variables recursion detected

From: Date: Mon, 01 Feb 2021 14:55:27 +0000
Subject: Bug #76661 [Ver->Csd]: mb_convert_variables recursion detected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231863@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76661&edit=1 ID: 76661 Updated by: cmb@php.net Reported by: alldroll at gmail dot com Summary: mb_convert_variables recursion detected -Status: Verified +Status: Closed Type: Bug Package: mbstring related Operating System: no matter PHP Version: 7.2Git-2018-07-25 (Git) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > can you make backport it to 7.2 ? No, since PHP-7.2 is no longer maintained at all. Previous Comments: ------------------------------------------------------------------------ [2018-07-25 23:42:25] alldroll at gmail dot com can you make backport it to 7.2 ? ------------------------------------------------------------------------ [2018-07-25 09:48:44] cmb@php.net Confirmed: <https://3v4l.org/LK5DY>. Fixed for PHP 7.3 with commit 45ee78e[1]. [1] <http://git.php.net/?p=php-src.git;a=commit;h=45ee78e> ------------------------------------------------------------------------ [2018-07-25 01:07:50] alldroll at gmail dot com Description: ------------ Recursion detected on calling mb_convert_variables with nested array Test script: --------------- <?php $test = array ( 0 => array ( ) ); mb_convert_variables('utf-8', 'cp1251', $test); var_dump($test); mb_convert_variables('utf-8', 'utf-8', $test); var_dump($test); // here another example for ($i = 0; $i < 2; ++$i) { $test = array ( 0 => array() ); $data = json_decode(json_encode($test), 1); mb_convert_variables('utf-8', 'cp1251', $data); var_dump($data); } Expected result: ---------------- no error ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76661&edit=1

« previous php.bugs (#231863) next »