Community
Participate
Working Groups
Created attachment 176679 [details] Video of the problem Hi All, I am quite new with eclipse PDT, and I must say, I love it! I just found 1 item which I think is a small bug. I did some searching in Google and this site, but I can't find anything about it. The problem. I have some constants defined in my bootstrap.php file. These constants are correctly auto completed in my whole project, but only if I am in the "main body" of a PHP file. If I move my cursor in a class, then the auto complete will not show me the constant. Is this a bug? I think so. So, example: bootstrap.php <?php define('MY_DEFINED_CONSTANT_HERE', 123 ); // here some code ?> TestClass.php <?php define('ANOTHER_DEFINE', 345) ; // if I type here MY_D, then the autocomplete DOES work! class TestClass { public function myMethod() { // if I type here MY_D, then it DOES NOT work! // if I type ANOTH, then that constant is visible. } } ?> If I define the constant in the file itself, it does work. The file TestClass is loaded by an AutoLoader, thus not by a "include". I have set the PHP version to 5.3 within my project settings, but this makes no difference. Default it runs wit PHP 5.1/5.2. I have tried to make a video of it with my webcam, but its very blurry. Hope it helps though...
Oh, I forgot to mention that the PHP constants like PHP_EOL or CURLOPT* constants are also not available.
I think this bug has been fixed in head already,it is duplicate of Bug 264442.
Tested on 2.2.1.v20100829 Still reproducible.
Hi zhao, is this bug fixed already?
Could not reproduce it.
Verified. Closing...