gpt4 book ai didi

rest - 找不到类 'Httpful\Bootstrap'

转载 作者:行者123 更新时间:2023-12-04 19:42:24 26 4
gpt4 key购买 nike

我正在使用 DirectAdmin 1.53.2 和 PHP 7.0 开发 CentOS 6.0 64 位。一切都很好,但最近我有错误

Class 'Httpful\Bootstrap' not found

在使用 http://phphttpclient.com 中的脚本的页面上
<?php require_once('httpful.phar'); ?>

这个错误发生在 PHP 错误日志中:
PHP Warning:  include(): Failed opening 'phar://httpful.phar/Httpful/Bootstrap.php' for inclusion (include_path='.:/usr/local/php70/lib/php') in /home/webster/domains/webster-studio.pl/public_html/portfolio/polonus/adds/httpful.phar on line 4\n'

现在,我发现重新启动服务 php7 删除了该错误,但仅在第一个加载页面上......重新加载错误后再次显示......
service php-fpm70 restart

也许有人更了解这种情况,我该怎么做才能永久消除该错误?

最佳答案

好的,将 PHP 升级到 7.1 后问题消失了...

关于rest - 找不到类 'Httpful\Bootstrap',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51588716/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com