summaryrefslogtreecommitdiff
path: root/src/exception.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-24 13:43:47 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-24 13:43:47 +0100
commit2fd4198b78358cf2ba527296fafb5b1728e28ea8 (patch)
tree798098f25293908c7fae4e35e8761918460cdb3e /src/exception.cpp
parent930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff)
added tsrm parameter to all methods to make it compile on tsrm platforms
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);
}
/**