Lines Matching refs:connection
47 php_oci_connection *connection = (php_oci_connection*)fo_ctx; in callback_fn() local
53 if (Z_ISUNDEF(connection->taf_callback) || Z_ISNULL(connection->taf_callback)) { in callback_fn()
58 ZVAL_RES(¶ms[0], connection->id); in callback_fn()
63 if (call_user_function(NULL, NULL, &connection->taf_callback, &retval, 3, params) == FAILURE) { in callback_fn()
88 int php_oci_unregister_taf_callback(php_oci_connection *connection) in php_oci_unregister_taf_callback() argument
90 return php_oci_register_taf_callback(connection, NULL); in php_oci_unregister_taf_callback()
96 int php_oci_register_taf_callback(php_oci_connection *connection, zval *callback) in php_oci_register_taf_callback() argument
106 if (Z_ISUNDEF(connection->taf_callback) || Z_ISNULL(connection->taf_callback)) { in php_oci_register_taf_callback()
111 zval_ptr_dtor(&connection->taf_callback); in php_oci_register_taf_callback()
112 ZVAL_NULL(&connection->taf_callback); in php_oci_register_taf_callback()
114 if (!Z_ISUNDEF(connection->taf_callback)) { in php_oci_register_taf_callback()
116 if (!Z_ISNULL(connection->taf_callback)) { in php_oci_register_taf_callback()
117 zval_ptr_dtor(&connection->taf_callback); in php_oci_register_taf_callback()
118 ZVAL_NULL(&connection->taf_callback); in php_oci_register_taf_callback()
123 ZVAL_COPY(&connection->taf_callback, callback); in php_oci_register_taf_callback()
132 failover.fo_ctx = connection; in php_oci_register_taf_callback()
138 …errstatus, OCIAttrSet, (connection->server, (ub4) OCI_HTYPE_SERVER, (void *) &failover, (ub4) 0, (… in php_oci_register_taf_callback()
141 zval_ptr_dtor(&connection->taf_callback); in php_oci_register_taf_callback()
142 ZVAL_UNDEF(&connection->taf_callback); in php_oci_register_taf_callback()
143 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_register_taf_callback()