oci_register_taf_callback
oci_register_taf_callback
Register a user-defined callback function for Oracle Database TAF
bool **oci_register_taf_callback** resource $connection $callback
Registers a user-defined callback function to .
If fails due to instance or network failure,
the registered callback function will be invoked for several times during
failover. See for information.
connection``connectionOCI8 Transparent Application Failover
(TAF) Support
When is called multiple times,
each registration overwrites the previous one.
oci_register_taf_callback
Use to explicitly unregister a
user-defined callback.
oci_unregister_taf_callback
TAF callback registration will NOT be saved across persistent connections, therefore the callback needs to be re-registered for a new persistent connection.
connectionAn Oracle connection identifier.
callbackA user-defined callback to register for Oracle TAF. It can be a
string of the function name or a Closure (anonymous function).
The interface of a TAF user-defined callback function is as follows:
int **userCallbackFn** resource $connection int $event int $type
See the parameter description and an example on page.
OCI8 Transparent Application Failover (TAF) Support
return.success
oci_unregister_taf_callback