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 182010 - accepting code completion in var rename produces double $
Summary: accepting code completion in var rename produces double $
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 09:00 UTC by nbphpuser
Modified: 2010-03-17 17:08 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 nbphpuser 2010-03-15 09:00:24 UTC
<?php
//try to rename $_GET to $_POST via CTRL+R shortcut and code completion for $_POST

//1. put cursor on $_GET
//2. CTRL+R
//3. Type _p
//4. code completion pops up
//5. accept suggestion $_POST
//6. final result: all other $_GET variables became $$_POST instead of $_POST

//initial code
if($_GET && isset($_GET['id'])){
    print 'get';
}


//final result
if($_POST && isset($$_POST['id'])){
    print 'get';
}

?>
Comment 1 Jan Lahoda 2010-03-17 17:08:02 UTC
Lets try this:
http://hg.netbeans.org/jet-main/rev/2125d16a823d