duanlaiquan8174 2010-07-12 22:09
浏览 56
已采纳

为什么我从PHP CodeSniffer获得异常?

Well, I'm getting a pretty bizarre error from PHPCS:

<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="1.2.2">
 <file name="/var/lib/hudson/jobs/Goals/workspace/Goals/controllers/UserActivation.class.php">
  <error line="1" column="1" severity="error" message="An error occurred during processing; checking has been aborted. The error message was: $stackPtr is not a class member var" source="unknownSniff"/>
 </file>
</checkstyle>

Any hints on what's going on here? Something similar has been mentioned in bug reports on PEAR, but it looks like it was fixed in 2009. I'm running the latest version of PHPCS, so idk what to think.

  • 写回答

1条回答 默认 最新

  • douba1498 2010-07-13 17:21
    关注

    This has since been solved. I'm not sure what the issue was except that my Ant build file was not working as it should. For those running Hudson CI (which I was during this issue), Sebastian Bergmann has a great template for doing Ant builds. Find it here: http://github.com/sebastianbergmann/php-hudson-template

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程