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 169533

Summary: PHP opening tag <?php not completed but inserted after
Product: php Reporter: schkovich <schkovich>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: blocker CC: fzamboj
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot ilustrating problem
code completion of open php tag

Description schkovich 2009-07-30 08:55:58 UTC
In editor after entering <? two options would be suggested <?php or <?=. Hitting any would result in inserting code
after entered text instead of completing it e.g. one would end up with <?<?php or <?<?=.
Comment 1 schkovich 2009-07-30 08:57:44 UTC
Created attachment 85512 [details]
Screenshot ilustrating problem
Comment 2 Tomasz Slota 2010-02-10 08:46:51 UTC
reassigning to default owner
Comment 3 schkovich 2010-03-17 13:03:48 UTC
In 6.9 it does not work at all.

Is code completion open/closing PHP tags abandoned?
Comment 4 schkovich 2010-03-17 13:05:35 UTC
Created attachment 95285 [details]
code completion of open php tag
Comment 5 schkovich 2010-04-09 19:17:48 UTC
Code completion is there again in build 201004090201 but unfortunately the same old is there as well. :)
Comment 6 Filip Zamboj 2010-04-12 12:52:42 UTC
well, now in 
Product Version: NetBeans IDE Dev (Build 100412-72e08cda4754)

you get all possible functions and variables (what means pretty much everything) after <? 

that's correct behavior. On the other hand, code completion to <?php or <?= is missing there. Radek, will you add this possibility or not? thanks.
Comment 7 schkovich 2010-04-12 13:09:37 UTC
(In reply to comment #6)
> well, now in 
> Product Version: NetBeans IDE Dev (Build 100412-72e08cda4754)
> 
> you get all possible functions and variables (what means pretty much
> everything) after <? 
> 
> that's correct behavior. On the other hand, code completion to <?php or <?= is
> missing there. Radek, will you add this possibility or not? thanks.
Well, that will depend on project settings: If Allow short tags is not checked in the project properties then the only legitimate option will be <?php. Otherwise, there are more possible options as you pointed out. :)

To be honest, I can live without having code competition for <?php and <?=, but if it is there then it should function correctly.
Comment 8 Filip Zamboj 2010-04-12 13:24:20 UTC
oh, yes. you're right, sorry ... my mistake. yep, this is a bug. reproducible in 
Product Version: NetBeans IDE Dev (Build 2010-04-12_09-04-28 )

1. disable short tags 
2. use code completion after <?

produces <?<?= or <?<?php
Comment 9 Filip Zamboj 2010-09-15 12:29:32 UTC
batch reassigning
Comment 10 Petr Pisl 2010-10-07 14:26:36 UTC
Fixed in the web-main.
Comment 11 Quality Engineering 2010-10-08 03:20:36 UTC
Integrated into 'main-golden', will be available in build *201010080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/36dc230b3b30
User: Petr Pisl <ppisl@netbeans.org>
Log: #169533 - PHP opening tag <?php not completed but inserted after