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.
PHP support use in php files <?= expression ?> as shortcut for "<? echo expression ?>" or <?php echo expression ?>" This is describe here: http://cz2.php.net/manual/en/language.basic-syntax.php in Example #2 PHP Opening and Closing Tags Problem is, that in Netbeans doesn't work code complete in this section. This syntax is often use in template file. See: http://framework.zend.com/manual/en/zend.view.html#zend.view.introduction.shortTags
Created attachment 69804 [details] Example with standard <?php echo syntax
Created attachment 69805 [details] Example with short <?= syntax
CC in <?= ?> works for me in general. The problem is probably somewhere else. Can you please provide a reproducible case?
Reproducible for me. Reopening the issue. Reproducible case is below. In the first case CC works, but in the second it doesn't. <?php class PHPClass { static $st; } ?> <?php echo PHPClass::| ?> <?= PHPClass::| ?>
Fixed & unit tested: http://hg.netbeans.org/main/rev/795e6640a10e As I was fixing it I realized there was also no CC in the following situation: <?php class Test147179 { public static function foo(); } ?> <? Test147179::foo(); ?> And I covered this use case as well. It looks like a P2, the fix was simple so it should be considered for a patch for NB 6.5
.
Integrated into 'main-golden', will be available in build *200810220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/795e6640a10e User: Tomasz Slota <tslota@netbeans.org> Log: #147179: CC doesn't work in <?= ?>
Verified
The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/aa5cc493c827
Verified in patch2, winXP