diff options
author | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-29 10:53:22 +0100 |
---|---|---|
committer | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-29 10:53:22 +0100 |
commit | df717775f6e484cd8901e01d5a355f1683fbeb64 (patch) | |
tree | 80efdd5c54fd79812c285019482956997bcb4379 /src | |
parent | f22a2c5f26eba8f4e907e8919c56b67038c95354 (diff) |
Partial Exception implementation added, inherits from std::exception
Diffstat (limited to 'src')
-rw-r--r-- | src/exception.cpp | 1 | ||||
-rw-r--r-- | src/function.cpp | 4 | ||||
-rwxr-xr-x | src/libphpcpp.so | bin | 132635 -> 132689 bytes |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/exception.cpp b/src/exception.cpp index 19591db..f60f27c 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -14,4 +14,5 @@ namespace Php { + } diff --git a/src/function.cpp b/src/function.cpp index fe96745..ef9cf78 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -43,9 +43,9 @@ void invoke_function(INTERNAL_FUNCTION_PARAMETERS) // get the result result = function->invoke(*PHPCPP_G(environment), params); } - catch (const Php::Exception &exception) + catch (Php::Exception &exception) { - zend_throw_exception(zend_exception_get_default(), exception.getMessage(), 0 TSRMLS_CC); + zend_throw_exception(zend_exception_get_default(), (char*)exception.message().c_str(), 0 TSRMLS_CC); } } diff --git a/src/libphpcpp.so b/src/libphpcpp.so Binary files differindex d217cab..2b81ba7 100755 --- a/src/libphpcpp.so +++ b/src/libphpcpp.so |