diff options
author | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-28 15:46:02 +0100 |
---|---|---|
committer | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-28 15:46:02 +0100 |
commit | 9185842b1d2fd352f6d71a46d2017fa25cc3c6a7 (patch) | |
tree | 9d7af5cea5cbdd98dc53e48cd92d21080b8acea7 /src | |
parent | a6587568fe996abc6b128d5e78d61c342e95d922 (diff) |
Additional functions with parameters; references, objects and arrays
Diffstat (limited to 'src')
-rw-r--r-- | src/function.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/function.cpp b/src/function.cpp index a4b3fdd..9376751 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -37,8 +37,21 @@ void invoke_function(INTERNAL_FUNCTION_PARAMETERS) // construct parameters Parameters params(this_ptr, ZEND_NUM_ARGS()); - // get the result - result = function->invoke(*PHPCPP_G(environment), params); + // the function could throw an exception + //try + //{ + // get the result + result = function->invoke(*PHPCPP_G(environment), params); + //} + //catch (const Php::Exception &exception) + //{ + // cout << "got exception"; + + // @todo throw the exception.... + + + + //} } /** |