|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-30 19:50 UTC] felipe@php.net
[2010-11-30 19:50 UTC] felipe@php.net
-Package: Unknown/Other Function
+Package: Scripting Engine problem
[2010-12-01 15:26 UTC] jani@php.net
-Status: Open
+Status: Bogus
[2010-12-01 15:26 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 09:00:01 2025 UTC |
Description: ------------ Since we can now pass around function much easier, It would be beneficial to be able to "chain" together function calls. Test script: --------------- <?php function returnClosure() { return function() { print "helloworld"; }; } returnClosure()(); Expected result: ---------------- helloworld Actual result: -------------- Parse error: syntax error, unexpected '(' in test.php on line 9