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.

Bug 268463 - PHP 7 - previously reserved words not allowed
Summary: PHP 7 - previously reserved words not allowed
Status: RESOLVED DUPLICATE of bug 262141
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-11 09:12 UTC by mbukovsky
Modified: 2016-10-11 11:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Default as function name (33.23 KB, image/png)
2016-10-11 10:16 UTC, mbukovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mbukovsky 2016-10-11 09:12:57 UTC
I have installed lates Netbeans 8.2:

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: Linux version 4.4.8-040408-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/me/.netbeans/8.2
Cache directory: /home/me/.cache/netbeans/8.2

There is not allowed to use previously reserved words (keywords) in code. But in PHP 7 it is already common usage.
Documentation here: http://php.net/manual/en/reserved.keywords.php
Comment 1 Tomas Mysik 2016-10-11 09:21:13 UTC
Just to be sure, can you provide a few samples?

BTW not a P2, sorry.

Simply reopen this issue, thanks.
Comment 2 mbukovsky 2016-10-11 10:16:40 UTC
Created attachment 162450 [details]
Default as function name
Comment 3 mbukovsky 2016-10-11 10:17:52 UTC
In attachment is used "default" as function name. The problem is also with class name.
Comment 4 Tomas Mysik 2016-10-11 11:18:40 UTC
Thanks, this is already reported as issue #262141 so marking as a duplicate.

*** This bug has been marked as a duplicate of bug 262141 ***