|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-10-07 21:44 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2015-10-07 21:44 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 16:00:01 2025 UTC |
Description: ------------ See below Test script: --------------- <?php class Test { public $test=3; } echo ($test=new Test())->test; Expected result: ---------------- 3 Actual result: -------------- Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ',' or ';' I may be wrong but I seem to remember the same bug with the [] operator being fixed ages ago.