|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-30 16:48 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 11 17:00:01 2026 UTC |
Description: ------------ Parser recognize wrong the array parameter. It see array(..) as (array). Reproduce code: --------------- $a = create_function(array(1), 'print 1;'); Expected result: ---------------- Parse error: syntax error, unexpected T_ARRAY, expecting '&' or T_VARIABLE Actual result: -------------- Parse error: syntax error, unexpected T_ARRAY_CAST, expecting '(' in /home/felipe/public_html/bug.php(4) : runtime-created function