0

我已经在 Zend Studio 中安装了 PHP PTI 工具作为插件。我可以找到配置 PHP 版本的选项,并为 PHP Depend、PHP Copy Paste Detector 和 Code Sniffer 使用 PEAR 库。但不适用于 PHP Mess Detector。

有没有办法配置它?它始终使用 Zend Studio 9 的内置 PHP 5.4 版本,仅此而已。从上下文菜单中使用它的输出给出:

/Applications/Zend Studio.app/Contents/Resources/Java/plugins/com.zend.php.debug.debugger.php54.macosx_5.4.0.v20120214/resources/php54/php-cgi -c /var/folders/9t/ z7lbvftx6m3gs9jfqqfw5v1r0000gp/T/zend_debug/session6059915200436834623.tmp -d asp_tags=off -d short_open_tag=on /Applications/Zend Studio.app/Contents/Resources/Java/plugins/org.phpsrc.eclipse.pti.tools.phpmd_0.1.00000010628 /php/tools/phpmd.php /Users/sebey/Sites/sb/customer/app/include/library/Customer/Cms/Definition xml /Applications/Zend Studio.app/Contents/Resources/Java/ZendStudio.app/Contents /MacOS/file:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000.jar!/php/library/PEAR/data/PHP_PMD/资源/rulesets/codesize.xml,/Applications/Zend Studio.app/Contents/Resources/Java/ZendStudio.app/Contents/MacOS/文件:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000.jar!/php/library/PEAR/data/PHP_PMD/resources/rulesets/naming .xml,/Applications/Zend Studio.app/Contents/Resources/Java/ZendStudio.app/Contents/MacOS/file:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/org.phpsrc.eclipse.pti .library.pear_1.2.2.R20120127000000.jar!/php/library/PEAR/data/PHP_PMD/resources/rulesets/unusedcode.xml dyld:库未加载:/usr/local/zend/mysql/lib/mysql/libmysqlclient。 16.dylib 引用自:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/com.zend.php.debug.debugger.php54.macosx_5.4.0.v20120214/resources/php54/php-cgi 原因:image未找到/php/library/PEAR/data/PHP_PMD/resources/rulesets/naming.xml,/Applications/Zend Studio.app/Contents/Resources/Java/ZendStudio.app/Contents/MacOS/file:/Applications/Zend Studio.app /Contents/Resources/Java/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000.jar!/php/library/PEAR/data/PHP_PMD/resources/rulesets/unusedcode.xml dyld:库未加载:/usr/local/zend/mysql/lib/mysql/libmysqlclient.16.dylib 引用自:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/com.zend.php.debug.debugger.php54。 macosx_5.4.0.v20120214/resources/php54/php-cgi 原因:找不到图像/php/library/PEAR/data/PHP_PMD/resources/rulesets/naming.xml,/Applications/Zend Studio.app/Contents/Resources/Java/ZendStudio.app/Contents/MacOS/file:/Applications/Zend Studio.app /Contents/Resources/Java/plugins/org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000.jar!/php/library/PEAR/data/PHP_PMD/resources/rulesets/unusedcode.xml dyld:库未加载:/usr/local/zend/mysql/lib/mysql/libmysqlclient.16.dylib 引用自:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/com.zend.php.debug.debugger.php54。 macosx_5.4.0.v20120214/resources/php54/php-cgi 原因:找不到图像pear_1.2.2.R20120127000000.jar!/php/library/PEAR/data/PHP_PMD/resources/rulesets/unusedcode.xml dyld:库未加载:/usr/local/zend/mysql/lib/mysql/libmysqlclient.16.dylib引用自:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/com.zend.php.debug.debugger.php54.macosx_5.4.0.v20120214/resources/php54/php-cgi 原因:找不到图像pear_1.2.2.R20120127000000.jar!/php/library/PEAR/data/PHP_PMD/resources/rulesets/unusedcode.xml dyld:库未加载:/usr/local/zend/mysql/lib/mysql/libmysqlclient.16.dylib引用自:/Applications/Zend Studio.app/Contents/Resources/Java/plugins/com.zend.php.debug.debugger.php54.macosx_5.4.0.v20120214/resources/php54/php-cgi 原因:找不到图像

要么我的项目没问题,没有缺陷....我有点怀疑.... ;-)

4

0 回答 0