PHP “未找到异常”
我有一个有趣的问题。在试图理解为什么某个网站将http代码500返回浏览器时,我发现了该消息
PHP Fatal error: Class 'MZ\\MailChimpBundle\\Services\\Exception' not found in /var/www/website/vendor/bundles/MZ/MailChimpBundle/Services/MailChimp.php on line 41
在 apache log 中。看看上面提到的一行:
throw new Exception('This bundle needs the cURL PHP extension.');
我现在知道如何让网站工作,但我仍然想知道为什么引发异常的代码(这会导致更有用的日志消息)失败。可能的原因是什么?