summaryrefslogtreecommitdiff
path: root/src/exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exception.cpp')
-rw-r--r--src/exception.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/exception.cpp b/src/exception.cpp
index 83c1d12..d409e1a 100644
--- a/src/exception.cpp
+++ b/src/exception.cpp
@@ -18,11 +18,13 @@ namespace Php {
*
* This method is called only from withing the PHP-CPP library,
* and will turn the exception into a PHP exception
+ *
+ * @param tsrm_ls
*/
-void Exception::process()
+void Exception::process(TSRMLS_D)
{
// an exception originally thrown by C++ should be passed on to PHP
- zend_throw_exception(zend_exception_get_default(), (char*)message().c_str(), 0 TSRMLS_CC);
+ zend_throw_exception(zend_exception_get_default(TSRMLS_C), (char*)message().c_str(), 0 TSRMLS_CC);
}
/**