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 235426 - PHP parentesis deletion matches square brackets with curly braces
Summary: PHP parentesis deletion matches square brackets with curly braces
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-02 18:08 UTC by unai
Modified: 2013-09-06 12:53 UTC (History)
0 users

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 unai 2013-09-02 18:08:07 UTC
[ JDK VERSION : 1.7.0_25 ]

HOW TO REPRODUCE

1) Paste the following code snippet into a new PHP 5.2 project

$v1="b ${"v2"[} d";

2) Position the caret where the vertical pipe is:

$v1="b ${"v2"[|} d";

3) Hit backspace.


EXPECTED RESULT:

The left square bracket is deleted:

$v1="b ${"v2"|} d";


ACTUAL RESULT:

The right curly brace is deleted as well:

$v1="b ${"v2"| d";
Comment 1 Ondrej Brejla 2013-09-05 11:11:34 UTC
Fixed in web-main #d664a7bcafc4
Comment 2 Quality Engineering 2013-09-06 01:36:36 UTC
Integrated into 'main-silver', will be available in build *201309060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d664a7bcafc4
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #235426 - PHP parentesis deletion matches square brackets with curly braces
Comment 3 mmolda 2013-09-06 12:53:13 UTC
Verified, thanks.

Product Version: NetBeans IDE Dev (Build 201309060001)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)