diff options
Diffstat (limited to 'zend/fatalerror.cpp')
-rw-r--r-- | zend/fatalerror.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
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 <emiel.bruijntjes@copernica.com> + * @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 + */ +} + |