exceptions thrown in PHP code can now be caugth and processed by C++ code