摘要:
错误:PHP Fatal error: Using $this when not in object context 代码如下: 原因:ReflectionFunction is operating on unbound Closures. That's why after the Reflecti 阅读全文
摘要:
php中,异常处理机制是有限的,无法自动抛出异常,必须手动进行,并且内置异常有限。 php把许多异常看作错误,这样就可以把这些异常想错误一样用set_error_handler接管,进而主动抛出异常。 比如以下warning类型的错误是捕获不到的 : Warning: Division by zer 阅读全文