dongtaoxue4674 2016-02-22 13:53
浏览 83
已采纳

运行PHPUnit时找不到扩展名

I try to load an extension to execute my tests with phpunit.

(The extension works in normal php execution)

the extension is defined in php.ini

extension=v8js.so

But when I execute my test I have the following error

Fatal error: Class 'V8Js' not found in helpers/JSBridge.php on line 30

I tried to force the extension loading with adding dl("v8js.so"); or dl("/usr/lib/php5/20100525+lfs/v8js.so"); in my php test file but still the same error

  • 写回答

1条回答 默认 最新

  • douna3367 2016-04-08 14:03
    关注

    The php.ini file is different for the web server and CLI. Make sure the extension is added to the command line php.ini.

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

报告相同问题?

悬赏问题

  • ¥20 matlab计算中误差
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊