summaryrefslogtreecommitdiff
path: root/src/function.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-12-06 07:42:36 -0800
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-12-06 07:42:36 -0800
commitc91dc2292f4fd49a3103691cb70fee8336c6aa6c (patch)
tree578d41f25a0ce7b37ab3b7c9d2aa1992ca91b0c0 /src/function.cpp
parent3750e24683f3a1d0b643e9808d9619db40d31cc4 (diff)
Global variables are now accessible via Php::globals["varname"]
Diffstat (limited to 'src/function.cpp')
-rw-r--r--src/function.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/function.cpp b/src/function.cpp
index ef9cf78..a710f36 100644
--- a/src/function.cpp
+++ b/src/function.cpp
@@ -45,6 +45,7 @@ void invoke_function(INTERNAL_FUNCTION_PARAMETERS)
}
catch (Php::Exception &exception)
{
+ // an exception originally thrown by C++ should be passed on to PHP
zend_throw_exception(zend_exception_get_default(), (char*)exception.message().c_str(), 0 TSRMLS_CC);
}
}