|
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-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 08:00:01 2025 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 ...