summaryrefslogtreecommitdiff
path: root/src/origexception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/origexception.cpp')
-rw-r--r--src/origexception.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/origexception.cpp b/src/origexception.cpp
index e3634e4..f64d696 100644
--- a/src/origexception.cpp
+++ b/src/origexception.cpp
@@ -21,8 +21,11 @@ OrigException::~OrigException() noexcept
// skip if the exception was restored
if (_restored) return;
+ // we need the tsrm_ls var
+ TSRMLS_FETCH();
+
// clean up the exception, because it was handled in C++ code
- zend_clear_exception();
+ zend_clear_exception(TSRMLS_C);
}
/**