| Summary: | No completion on object into a class. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Miguel A. Valero <mivaler> | ||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | gadi | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I have installed PDT 2.00 (Eclipse 3.4.2 Build M20090211-1700). The autocompletion work fine in this installation... the same code show the error message in the new release of PDT. PD: I'm sorry for my english i speak spanish. PHP2.2 works well. I can't believe that your answer is PDT works well... I've been trying to find information about this problem and always references to "variables classes" on extended classes... the problem always ocurr with an extended class. I'm using PDT since ganymede and works fine... but with helios the autocompletion don't work. if "PHP2.2 works well." then... the only fix to me is: Do not change to the new release or wait to a version more stable or mature. Hi Miguel I will download the release now,and test it,because I tested it using my development environment.If I can reproduce this bug,I will reopen it,if I could not,let us QA to verify it,ok? Hi I download Eclipse for PHP Developers from http://eclipse.org/downloads/ win32,and I could not reproduce this bug. Sorry I mean PHP2.2 works well for this issue:) I'm sorry for my english too,I speak Chinese,haha ok... I'm sorry too... the bug occurrs with an extended class. I'll download the release again and test. OK,and it is better to attach your php files that can reproduce this bug,so I will not misunderstand you,thanks! Created attachment 172828 [details]
files that reproduce the bug
Hi mate I do not know how to use your php files,sorry... Hi I found a case that can reproduce this bug,reopen it. fixed in head
use the following php content to test:
<?php
class layer {
public $server = "";
public function connect(){
}
}
class db_layer extends layer{
}
class site {
public $db;
public function __construct(){
$this->db = new db_layer;
for ($i = 0; $i < number_variable; $i++) {
}
}
}
class mysite extends site{
}
$site = new mysite();
$site->db->
[Petyo Tanchev] Tested on 2.2.1 SR1 Fixed |
Build Identifier: 20100617-1415 With the follow code, the auto completion not work. Classes: class db_layer { public $server = ""; public $username = ""; public $password = ""; public $dbname = ""; public $debug = false; public function connect(){ /* code */ } } class mysite { public $db; public function __construct(){ $this->db = new db_layer; } } Script: include("mysite.class.php"); $site = new mysite(); $site->db-> //Here show a message "No completion available" Reproducible: Always