From fecab9b936f5985da254ca42976eeaf8dbcbea1d Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 6 Mar 2014 17:58:39 +0100 Subject: changes to documentation, removed empty exception.cpp implementation, fixed exception handling --- src/origexception.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/origexception.cpp') diff --git a/src/origexception.cpp b/src/origexception.cpp index 4406158..e24131a 100644 --- a/src/origexception.cpp +++ b/src/origexception.cpp @@ -23,7 +23,7 @@ OrigException::OrigException(struct _zval_struct *zval) : _restored(false) { // save the exception - zend_exception_save(); + //zend_exception_save(); } /** @@ -52,7 +52,7 @@ OrigException::~OrigException() noexcept // skip if the exception was restored if (_restored) return; - // clean up the exception + // clean up the exception, because it was handled in C++ code zend_clear_exception(); } @@ -63,7 +63,7 @@ OrigException::~OrigException() noexcept void OrigException::restore() { // restore the exception - zend_exception_restore(); + //zend_exception_restore(); // mark exception as restored _restored = true; -- cgit v1.2.3