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 230677 - Add support for PHP 5.5
Summary: Add support for PHP 5.5
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal with 10 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 236668 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-03 14:53 UTC by blakerg
Modified: 2013-10-03 19:04 UTC (History)
6 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description blakerg 2013-06-03 14:53:52 UTC
There are several new language features and functions in 5.5. I went through all of the RFCs implemented for 5.5 and tested them all in the latest nightly build (201306022301) netbeans editor.

New features that break:

- https://wiki.php.net/rfc/generators
- https://wiki.php.net/rfc/finally
- https://wiki.php.net/rfc/foreachlist
- https://wiki.php.net/rfc/class_name_scalars
- https://wiki.php.net/rfc/empty_isset_exprs
- https://wiki.php.net/rfc/constdereference

I am assuming I don't need to bring up new functions like: array_column() and password_hash() since those will be picked up when the PHP auto-complete stub files are included.
Comment 1 Ondrej Brejla 2013-08-20 14:04:42 UTC
Implemented in php_80_features branch.
Comment 2 nadavvin 2013-09-11 09:08:13 UTC
where is not branch with name "php_80_feature"

http://hg.netbeans.org/main/branches

also not implemented in the current trunk: 201309110001 

http://bits.netbeans.org/download/trunk/nightly/lates/start.html?platform=windows&lang=en&option=php
Comment 3 Ondrej Brejla 2013-09-11 09:10:53 UTC
Don't reopen fixed issue. Branch is in web-main http://hg.netbeans.org/web-main/branches and will be merged to trunk this week.
Comment 4 nadavvin 2013-09-15 10:39:12 UTC
the support in "Const array/string dereference":
https://wiki.php.net/rfc/constdereference

is not implemented good.

while this is valid in netbeans:

echo array(2,3)[1];

this isn't:

function a(){
	return array(3,4);
}
echo a()[0];
Comment 5 Tomas Mysik 2013-09-16 05:09:55 UTC
@nadavvin: Please, report it (and all other issues) as a new issue so it can be properly tracked.

Thanks.
Comment 6 Ondrej Brejla 2013-10-02 17:08:58 UTC
*** Bug 236668 has been marked as a duplicate of this bug. ***
Comment 7 Ondrej Brejla 2013-10-03 17:45:04 UTC
*** Bug 236712 has been marked as a duplicate of this bug. ***
Comment 8 Fleshgrinder 2013-10-03 18:24:41 UTC
(In reply to Ondrej Brejla from comment #7)
> *** Bug 236712 has been marked as a duplicate of this bug. ***

How come that this issue is marked resolved and me having NetBeans 7.4 installed without any PHP 5.5 support (especially the finally keyword, as my whole project is still filled with exclamation marks)?

Is there something one has to install beside latest NetBeans to get this to work? Any help is highly appreciated.
Comment 9 Ondrej Brejla 2013-10-03 18:26:41 UTC
As you can read from previous posts, it's implemented in trunk (you can download the latest dev build [1]), so it will be in the next NB version.

[1] http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 10 Fleshgrinder 2013-10-03 18:30:09 UTC
(In reply to Ondrej Brejla from comment #9)
> As you can read from previous posts, it's implemented in trunk (you can
> download the latest dev build [1]), so it will be in the next NB version.
> 
> [1] http://bits.netbeans.org/download/trunk/nightly/latest/

Many thanks!

Downloaded NetBeans 7.4 from http://www.computerbase.de/downloads/system/entwicklung-und-server/netbeans-ide/ today. They have it marked as final (although nothing is to be found on netbeans.org, but the guys from that website already proofed in the past to often get their hands on latest downloads way before official websites are updated).
Comment 11 Ondrej Brejla 2013-10-03 18:36:24 UTC
That link I pasted is just for development (so updates will popup on you almost every day and it is common that it's unstable) build for next NB version, not 7.4...probably 8.0. PHP 5.5 will not be in 7.4 final. Feature freeze was in May I think and today we have 7.č RC2. Features really can't be backported ;)
Comment 12 Fleshgrinder 2013-10-03 19:04:13 UTC
(In reply to Ondrej Brejla from comment #11)
> That link I pasted is just for development (so updates will popup on you
> almost every day and it is common that it's unstable) build for next NB
> version, not 7.4...probably 8.0. PHP 5.5 will not be in 7.4 final. Feature
> freeze was in May I think and today we have 7.č RC2. Features really can't
> be backported ;)

Ah, okay, now I understand. I thought it will be in 7.4, so my bad.

PS: I know what nightly builds are, bugs are no problem for me. Love to help you guys sorting them out, and I benefit from each and every fix.