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.
Summary: | PHP7 support in NB 8.1 | ||
---|---|---|---|
Product: | php | Reporter: | wegus <wegus> |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chrizzly, dasprid, TheTechFan, titus1006 |
Priority: | P1 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
wegus
2015-07-28 11:29:39 UTC
If no one else wants to tackle this, please let me know and I'll attempt to contribute the patch! (In reply to RiptideTempora from comment #1) > If no one else wants to tackle this, please let me know and I'll attempt to > contribute the patch! I was also looking at implementing the new features myself but then found out that most of them were working (scalar arguments types, return types, spaceship and coalesce operators) when I built NetBeans from source. The related commits can be found here - http://hg.netbeans.org/main/log/8f73454c4144/php.editor/tools/ASTPHP5Parser.cup Only thing I spotted so far not working yet were anonymous classes. This is in fact NOT true. I am using coalesce operators / use grouping / and a few other features of php 7 in my code and every one of them is showing up as a syntax error. This is REALLY annoying and im surprised its not fixed now that php 7 is actually released. bgarrison, did you actually (In reply to bgarrison25 from comment #3) > This is in fact NOT true. I am using coalesce operators / use grouping / and > a few other features of php 7 in my code and every one of them is showing up > as a syntax error. This is REALLY annoying and im surprised its not fixed > now that php 7 is actually released. Are you actually using Netbeans compiled from source? (In reply to bgarrison25 from comment #3) > This is in fact NOT true. I am using coalesce operators / use grouping / and > a few other features of php 7 in my code and every one of them is showing up > as a syntax error. This is REALLY annoying and im surprised its not fixed > now that php 7 is actually released. If you download the development version of NB the PHP 7 features listed at http://hg.netbeans.org/main/log/8f73454c4144/php.editor/tools/ASTPHP5Parser.cup seem to be working when PHP 5.6 is selected in project properties (there still is no PHP 7 option). However, use grouping and anonymous classes are not yet done. @lemon_juice@netbeans.org You saying any of these http://bits.netbeans.org/dev/nightly/ will cover every of these http://hg.netbeans.org/main/log/8f73454c4144/php.editor/tools/ASTPHP5Parser.cup ? (sorry if this is stupid question) @sruj: I just loaded NetBeans Nightly Build from yesterday, and it appears to work well with many PHP7 syntax features - I'm surprised by how well it's working, and wouldn't go back to the "stable" v8.1 now. As suggested by lemon_juice, select PHP5.6 for your project as there is no separate "PHP7" option yet. The nightly builds of NB 8.2 have fully PHP 7.0 support :) Seems resolved to me since current NetBeans version (8.2) has PHP7 support. |