Hi.
You can use the
set_error_handler function to set your own error handler, which could throw an exception.
But... it will not work for fatal errors, such as the on your non-existing function would cause. Such an error is considered the equivalent of a Java *compile error*, which the code itself would not be able to handle.
Exceptions are meant to handle runtime errors. Fatal errors will always stop your code, despite your error or exception handling. (In theory at least)
You would need to use the
function_exists function, like mentioned in the previous post.