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 237768 - Unnecessary Closing Delimiter message when last line uses short tags
Summary: Unnecessary Closing Delimiter message when last line uses short tags
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 17:10 UTC by chrisforrence
Modified: 2013-11-12 13:45 UTC (History)
1 user (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 chrisforrence 2013-10-29 17:10:05 UTC
At the end of PHP 5.4 files, I can type the below string:

</script><?=printFooter()?>

However, this throws an invalid "Unnecessary Closing Delimiter" message. In addition, it suggests that I should remove the ending `?>`, which would result in invalid code.

A workaround for this would be to suggest refactoring to `<?php echo printFooter();`
Comment 1 Ondrej Brejla 2013-10-30 10:58:35 UTC
Fixed in web-main #dabe5f28d639
Comment 2 mmolda 2013-11-04 19:12:38 UTC
Verified. Thanks.

Product Version: NetBeans IDE Dev (Build 201311040001)
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: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
Comment 3 Ondrej Brejla 2013-11-07 14:03:43 UTC
Transplanted to release74 branch in releases repo. Please, verify, thanks.
Comment 4 mmolda 2013-11-12 13:42:59 UTC
Verified.

Product Version: NetBeans IDE 7.4 (Build 201311111738)
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: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)