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

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

报告相同问题?

悬赏问题

  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害