PHP 5.4 Interpreter for Eclipse PDT

坚强是说给别人听的谎言 提交于 2019-12-07 05:08:31

问题


So PHP 5.4 is released, but when will the interpreter come out for eclipse PDT to support the new syntax of PHP 5.4?

All I could find on the web so far is an old "Bug Report": https://bugs.eclipse.org/bugs/show_bug.cgi?id=362672. It seems like I can't even sign up there to post a question on its status.

Is somebody working on it? Is there dev version for it publicly available? How long does it typically take for them to release a new interpreter after a new PHP version comes out?

The PHP 5.4 syntax has been announced quite some time ago. How come its still not supported in Eclipse (I am not complaining, just want to know where it is hanging)?


回答1:


Yep there is an interpreter for PHP 5.4 although its seems buggy, static function click throughs dont work on my mac eclipse install and on my windows eclipse install no function click throughs work.

Give it a try

In your eclipse go to

Preferences -> PHP -> PHPInterpreter Then select PHP version to PHP 5.4

If it is not available then you will need to update your PDT

help -> Check for updates

I commented on the bug report you mentioned the other day before i realised there is an interpreter so you can sign up and comment your self go to...

https://bugs.eclipse.org/bugs/

Seems to me the interpreter still needs some work though as would be nice to have better code assist with traits.




回答2:


PDT versions >= 3.0.0 all support PHP 5.4, including trait support.

The current version, as of writing, is PDT 3.1.0, and 3.1.1 is available from the nightly developer builds update site:

  • http://download.eclipse.org/tools/pdt/updates/3.1.1/nightly


来源:https://stackoverflow.com/questions/9608747/php-5-4-interpreter-for-eclipse-pdt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!