Bug #75961 [Opn->Csd]: Strange references behavior

From: Date: Sat, 17 Feb 2018 08:38:47 +0000
Subject: Bug #75961 [Opn->Csd]: Strange references behavior
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214001@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75961&edit=1 ID: 75961 Updated by: laruence@php.net Reported by: imbolk at gmail dot com Summary: Strange references behavior -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: all PHP Version: 7.1.14 Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=94e9d0a2ae76bad712495d820d3962e401085fef Log: Fixed bug #75961 (Strange references behavior) Previous Comments: ------------------------------------------------------------------------ [2018-02-14 16:57:36] imbolk at gmail dot com Description: ------------ Results in PHP 7.1+ and pre-PHP-7.1 are differs. I'm not sure what I have to expect to see but pre-PHP-7.1 result is more intuitive. Test script: --------------- $arr = [[1]]; array_walk($arr, function(){}); array_map('array_shift', $arr); var_dump($arr); Expected result: ---------------- array(1) { [0]=> array(1) { [0]=> int(1) } } Actual result: -------------- array(1) { [0]=> array(0) { } } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75961&edit=1

« previous php.bugs (#214001) next »