|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-11-03 13:58 UTC] nikic@php.net
-Status: Open
+Status: Wont fix
[2013-11-03 13:58 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 09:00:01 2025 UTC |
Description: ------------ When affecting a closure by reference, the parser doesn't recognize the pattern and issues a parse error. It could be better to explicitly notice the error Test script: --------------- $a = &function () { }; Expected result: ---------------- Some kind of "Warning, Closure cannot be assigned by reference" Actual result: -------------- Parse error: syntax error, unexpected T_FUNCTION