This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 162658 [details] 8.2 complaining about a constant referenced within a namespace Syntax checking apparently does not put up with constant arrays in a NAMESPACE. It's the leading backslash what is causing problems. How to reproduce: 1) create a new PHP 5.6 project, with UTF-8. 2) create a new file "test.php" 3) write: $a = \TEST[0]; 4) you get the syntax error in the screenshot Product Version: NetBeans IDE 8.2 (Build 201609300101) Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13 System: Windows 7 version 6.1 running on amd64; UTF-8; cs_CZ (nb)
Thanks for reporting!
Fixed. http://hg.netbeans.org/web-main/rev/e6b3338b78ec Thanks.
When this fix will be available in the dev build, the comment for it is added here. Then, could you verify it in the dev version? Thanks.
Thanks for the fix, Junichi!
Integrated into 'main-silver', will be available in build *201611090620* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e6b3338b78ec User: Junichi Yamamoto <junichi11@netbeans.org> Log: #268712 - "Unexpected '[' after identifier" with constant array in a namespace
I have just verified the issue with NetBeans IDE Dev (Build 201611110001) and I can confirm that it has been resolved. Thank you!
Thanks for verification!
Transplanted to the releases repo branch release82: http://hg.netbeans.org/releases/rev/f48ff4709324 Thanks.
82patch1-verified