Bug #66983 [Fbk->NoF]: anonymous function

From: Date: Sun, 22 Mar 2015 04:22:18 +0000
Subject: Bug #66983 [Fbk->NoF]: anonymous function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191521@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66983&edit=1 ID: 66983 Updated by: php-bugs@lists.php.net Reported by: koushky at gmail dot com Summary: anonymous function -Status: Feedback +Status: No Feedback Type: Bug Package: Variables related Operating System: linux x86_64 PHP Version: 5.4.26 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2015-03-10 21:11:17] nikic@php.net I can't reproduce this behavior on any PHP version: http://3v4l.org/rXeKq Valgrind didn't produce any output either. ------------------------------------------------------------------------ [2014-03-30 18:11:30] koushky at gmail dot com Description: ------------ i use anonymous function in other function when there is array union operator (+) above of this anonymous then the variable convert to NULL . Test script: --------------- class foo { public function test($o = array()){ $o += array('test'); $func = function(){}; var_dump($func); } } $foo = new foo; $foo->test(); Expected result: ---------------- object(Closure)#2 (1) { ["this"]=> object(x)#1 (0) { } } Actual result: -------------- NULL ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66983&edit=1

« previous php.bugs (#191521) next »