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 238257 - Non-project fies can't be used with short open tags
Summary: Non-project fies can't be used with short open tags
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-12 07:06 UTC by Ondrej Brejla
Modified: 2013-11-17 02:12 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 Ondrej Brejla 2013-11-12 07:06:53 UTC
If one opens a file, which is not in any project and contains PHP snippet inside short open tags, it's not lexed properly. Probably because of "allow short open tags" is disabled by default. Imho this option should be enabled by default for non-project files. Evaluate, thanks.
Comment 1 Ondrej Brejla 2013-11-12 07:07:06 UTC
Probably patch candidate?
Comment 2 Tomas Mysik 2013-11-12 10:03:35 UTC
Fixed. Guys on CC, pleae verify so I can backport it to the NB 7.4.

Thanks.

http://hg.netbeans.org/web-main/rev/feddc64b628a
Comment 3 Vladimir Riha 2013-11-13 09:53:51 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201311130002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 4 Tomas Mysik 2013-11-13 10:01:51 UTC
Transplanted to the releases repository, branch release74.

http://hg.netbeans.org/releases/rev/4995bc0ef887
Comment 5 mmolda 2013-11-14 13:42:05 UTC
Verified.

Product Version: NetBeans IDE 7.4 (Build 201311141216)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b50
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b108
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 6 Quality Engineering 2013-11-17 02:12:36 UTC
Integrated into 'main-silver', will be available in build *201311170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/44aca58e8f05
User: Ondrej Brejla <obrejla@netbeans.org>
Log: Fixed failing test.

Default behavior of short open tags changed because of issue #238257 and changeset feddc64b628a.