dongtiaobeng7901 2015-05-26 01:21
浏览 171

PHP class_exists()失败,代码相同,环境略有不同

We have a Zend Framework 2 app that's failing on our test environment at Zend\ServiceManager\ServiceManager->createFromFactory() with "an invalid factory was registered for this instance type" exception. We've pinpointed this down to a class_exists() call that's failing on test, passing in development.

The code is the same as development. Both environments are running Ubuntu 12.04 and slightly different versions of PHP 5.3.10. We've tried disabling xcache but this doesn't help.

What would cause these very similar environments to generate different result for class_exists()? The rest of the app is working fine, just this call for one particular factory is failing. Namespaces and configurations have been double checked.

  • 写回答

1条回答 默认 最新

  • dongnuo2879 2015-05-26 04:40
    关注

    Resolved. The class name didn't match the case of the file name. I'm not sure why this is is different between two Ubuntu distributions.

    评论

报告相同问题?

悬赏问题

  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛