【发布时间】:2012-08-02 00:03:22
【问题描述】:
我有以下代码在 PHP 5.4.4 中运行良好:
if (@class_exists('COM'))
{
// Do the actual work here...
}
else
{
throw new MissingComponentException('COM');
}
一旦升级到 PHP 5.4.5,代码就会停止工作,并且总是抛出异常。 Stack Overflow 上的其他答案没有帮助,因为它们指的是在 Windows 以外的平台上运行的 PHP (example;another one)。
我能做什么?
【问题讨论】:
标签: php com configuration