|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-10 21:11 UTC] nikic@php.net
-Status: Open
+Status: Feedback
[2015-03-10 21:11 UTC] nikic@php.net
[2015-03-22 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 06:00:02 2025 UTC |
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