Begin to use exceptions in PHP bindings