bug_report 邮件抛出调用未定义函数异常
Devil-guigui opened this issue · 5 comments
Devil-guigui commented
描述问题
启动邮件工具run一遍发现有报错,对应行的代码是return filter_var($address, FILTER_VALIDATE_EMAIL) !== false;
<b>Fatal error</b>: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\filter_var() in /data/wwwroot/freenom/vendor/phpmailer/phpmailer/src/PHPMailer.php:1407
重现步骤
步骤一
php run
截图&日志
你做了哪些尝试
描述你发现问题后做了哪些尝试,以及尝试结果,方便我快速排除某些问题,提高沟通效率。
环境信息
- 系统: (mipselsf linux)
- PHP 版本: (php8.0)
- 脚本版本: (x)
- 是否 Docker: (x)
额外的备注
- Add any other context about the problem here.
- x
luolongfei commented
试试 composer update
Devil-guigui commented
-sh: composer: not found,,,# php -v
PHP 8.1.13 (cgi-fcgi) (built: Dec 14 2022 14:43:47)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
luolongfei commented
你说的环境我没听说过。没法重现你的问题。
Devil-guigui commented
果然应该是环境不行,多谢大佬解答