From c6c68cbc60711b43e8a570d708db3768240fcc5a Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 19 Jun 2014 13:48:59 +0200 Subject: errors are no longer thrown as exceptions, but are php fatal errors, so that they more closely match the zend error reporting system --- zend/fatalerror.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 zend/fatalerror.cpp (limited to 'zend/fatalerror.cpp') diff --git a/zend/fatalerror.cpp b/zend/fatalerror.cpp new file mode 100644 index 0000000..e57be73 --- /dev/null +++ b/zend/fatalerror.cpp @@ -0,0 +1,31 @@ +/** + * FatalError.cpp + * + * @author Emiel Bruijntjes + * @copyright 2014 Copernica BV + */ +#include "includes.h" + +/** + * Set up namespace + */ +namespace Php { + +/** + * Report this error as a fatal error + * @return bool + */ +bool FatalError::report() const +{ + // report the error + zend_error(E_ERROR, "%s", what()); + + // return true: it was reported + return true; +} + +/** + * End of namespace + */ +} + -- cgit v1.2.3