|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-11 16:08 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri May 22 21:00:02 2026 UTC |
Description: ------------ I was trying to call a function returned by another function and it caused a parse error. Reproduce code: --------------- function a() { echo 'a'; return create_function('', 'echo \'b\';'); }; a()(); - OR - function a() { echo 'a'; return function() { echo 'b'; }; }; a()(); Expected result: ---------------- ab Actual result: -------------- Parse error: syntax error, unexpected '(' in ...