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 194898 - Files from "Include Path" don't use the same 'PHP version' for hinting
Summary: Files from "Include Path" don't use the same 'PHP version' for hinting
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 09:38 UTC by st3vie
Modified: 2011-09-07 14:30 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description st3vie 2011-01-31 09:38:18 UTC
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".
Comment 1 Tomas Mysik 2011-06-03 10:22:36 UTC
Batch reassigning.
Comment 2 Tomas Mysik 2011-06-17 06:18:06 UTC
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.
Comment 3 Tomas Mysik 2011-06-17 06:23:01 UTC
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.
Comment 4 Tomas Mysik 2011-09-06 08:56:56 UTC
Project's part fixed, null is returned now as PHP version.

http://hg.netbeans.org/web-main/rev/7c2d1cd7aad9

Please, the editor part. Thanks.
Comment 5 Ondrej Brejla 2011-09-06 09:29:22 UTC
After a short discussion we have decided to set PHP_53 version as a default php file version. Reassigning to Project.
Comment 6 Tomas Mysik 2011-09-06 09:51:51 UTC
Fixed, the newest PHP version is always returned.

http://hg.netbeans.org/web-main/rev/03aac0e1a66c
Comment 7 Quality Engineering 2011-09-07 14:30:47 UTC
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.