summaryrefslogtreecommitdiff
path: root/src/origexception.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 17:58:39 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 17:58:39 +0100
commitfecab9b936f5985da254ca42976eeaf8dbcbea1d (patch)
treea1d2bd5fc59c646f89af9ce9de624a3386afe71d /src/origexception.cpp
parent2bd3471192b1ebd8f3841368db4b0eaa5643bf55 (diff)
changes to documentation, removed empty exception.cpp implementation, fixed exception handling
Diffstat (limited to 'src/origexception.cpp')
-rw-r--r--src/origexception.cpp6
1 files changed, 3 insertions, 3 deletions
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;