问题描述
从PECL安装HTTP扩展名之后,我希望Zend Studio 6能够识别提供的HTTP *类并提供代码完成功能.但是,事实并非如此.如何使Zend Studio识别PHP扩展提供的类?具体来说,我希望能够在这些类上使用代码竞争.
After having installed the HTTP extension from PECL, I expected Zend Studio 6 to recognize the provided HTTP* classes and for code completion to be made available. This is not the case, however. How do I get Zend Studio to recognize classes provided by PHP extensions? Specifcally, I want to be able to use code competition on these classes.
推荐答案
我使用了Michael Spector的phpgenerator.php脚本.它会生成一个php文档文件夹,其中包含您PC上已加载的扩展名.之后,可以将文档路径添加到Eclipse(Zend Studio)包含路径.代码完成的工作就像一种魅力.
I used the phpgenerator.php script from Michael Spector. It generates a php documentation folder with the loaded extensions on your pc. Afterwards the doc path can be added to the Eclipse (Zend Studio) include path. Code Completion works like a charm.
用法:
console: php phpgenerator.php $path_to_doc_output
这篇关于Zend Studio中PHP扩展的代码完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!