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.
Product Version = NetBeans IDE Dev (Build 201101310000) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.6.0_22 Runtime = Java HotSpot(TM) Client VM 17.1-b03 --------------------------------------------------------------------------- I have a PHP project with PHP version 5.3 set. When I open a file from the Include Path, the IDE shows for 5.3 features (like namespaces), that it is a "Language feature that is not compatible with PHP version indicated in Project Settings".
Batch reassigning.
Well, this is a bit tricky since Include Path is common for 5.3+ and older PHP files. So, there's no clear way which PHP version should be used for files from Include Path (moreover files in Include Path can be both, PHP 5.3+ and older, and that's correct and usual). My suggestion is: do not try to resolve PHP version for files from Include Path - is it doable? Or is there a better solution? Reassigning to the editor, please evaluate. Thanks.
Or, for files without project, php.project could return something like PHP_UNKNOWN - what do you prefer, Petr? Maybe doing so is better; anyway, the editor would need to handle this new state as well. Reassigning back to the PHP project.
Project's part fixed, null is returned now as PHP version. http://hg.netbeans.org/web-main/rev/7c2d1cd7aad9 Please, the editor part. Thanks.
After a short discussion we have decided to set PHP_53 version as a default php file version. Reassigning to Project.
Fixed, the newest PHP version is always returned. http://hg.netbeans.org/web-main/rev/03aac0e1a66c
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/7c2d1cd7aad9 User: Tomas Mysik <tmysik@netbeans.org> Log: Part of #194898 - Files from "Include Path" don't use the same 'PHP version' for hinting Editor part is TBD.