Lines Matching refs:connection

115 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char…
116 static int php_oci_old_create_session(php_oci_connection *connection, char *dbname, int dbname_len,…
119 static sword php_oci_ping_init(php_oci_connection *connection, OCIError *errh);
500 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_connection_list_dtor() local
502 if (connection) { in php_oci_connection_list_dtor()
503 php_oci_connection_close(connection); in php_oci_connection_list_dtor()
515 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_pconnection_list_dtor() local
517 if (connection) { in php_oci_pconnection_list_dtor()
518 php_oci_connection_close(connection); in php_oci_pconnection_list_dtor()
532 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_pconnection_list_np_dtor() local
548 if (!connection->is_open || in php_oci_pconnection_list_np_dtor()
549 connection->passwd_changed || in php_oci_pconnection_list_np_dtor()
554 if (connection->hash_key) { in php_oci_pconnection_list_np_dtor()
555 zvp = zend_hash_find(&EG(persistent_list), connection->hash_key); in php_oci_pconnection_list_np_dtor()
557 if (le != NULL && le->type == le_pconnection && le->ptr == connection) { in php_oci_pconnection_list_np_dtor()
558 zend_hash_del(&EG(persistent_list), connection->hash_key); in php_oci_pconnection_list_np_dtor()
561 php_oci_connection_close(connection); in php_oci_pconnection_list_np_dtor()
568 DTRACE_OCI8_CONNECT_P_DTOR_CLOSE(connection); in php_oci_pconnection_list_np_dtor()
581 php_oci_connection_release(connection); in php_oci_pconnection_list_np_dtor()
585 DTRACE_OCI8_CONNECT_P_DTOR_RELEASE(connection); in php_oci_pconnection_list_np_dtor()
734 void php_oci_connection_descriptors_free(php_oci_connection *connection) in php_oci_connection_descriptors_free() argument
736 zend_hash_destroy(connection->descriptors); in php_oci_connection_descriptors_free()
737 efree(connection->descriptors); in php_oci_connection_descriptors_free()
738 connection->descriptors = NULL; in php_oci_connection_descriptors_free()
739 connection->descriptor_count = 0; in php_oci_connection_descriptors_free()
842 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode); in php_oci_fetch_sqltext_offset()
850 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode); in php_oci_fetch_sqltext_offset()
863 php_oci_connection *connection; in php_oci_do_connect() local
890connection = php_oci_do_connect_ex(username, (int) username_len, password, (int) password_len, NUL… in php_oci_do_connect()
894 DTRACE_OCI8_CONNECT_RETURN(connection); in php_oci_do_connect()
899 if (!connection) { in php_oci_do_connect()
902 RETURN_RES(connection->id); in php_oci_do_connect()
917 php_oci_connection *connection = NULL; in php_oci_do_connect_ex() local
1048 connection = (php_oci_connection *)le->ptr; in php_oci_do_connect_ex()
1058 connection = (php_oci_connection *)ptr->ptr; in php_oci_do_connect_ex()
1065 DTRACE_OCI8_CONNECT_LOOKUP(connection, connection && connection->is_stub ? 1 : 0); in php_oci_do_connect_ex()
1076 if (connection && connection->is_persistent && connection->is_stub) { in php_oci_do_connect_ex()
1077 …if (php_oci_create_session(connection, NULL, dbname, dbname_len, username, username_len, password,… in php_oci_do_connect_ex()
1079 zend_hash_del(&EG(persistent_list), connection->hash_key); in php_oci_do_connect_ex()
1087 if (connection) { in php_oci_do_connect_ex()
1088 if (connection->is_open) { in php_oci_do_connect_ex()
1090 if (connection->is_persistent) { in php_oci_do_connect_ex()
1097 if (php_oci_connection_status(connection)) { in php_oci_do_connect_ex()
1105 …if (!ping_done && (*(connection->next_pingp) > 0) && (timestamp >= *(connection->next_pingp)) && !… in php_oci_do_connect_ex()
1112 connection->used_this_request = 1; in php_oci_do_connect_ex()
1113 if (connection->id) { in php_oci_do_connect_ex()
1114 tmp_val = zend_hash_index_find(&EG(regular_list), connection->id->handle); in php_oci_do_connect_ex()
1123 connection = tmp; in php_oci_do_connect_ex()
1124 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1127 PHP_OCI_REGISTER_RESOURCE(connection, le_pconnection); in php_oci_do_connect_ex()
1134 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1138 return connection; in php_oci_do_connect_ex()
1145 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1146 return connection; in php_oci_do_connect_ex()
1155 connection->is_open = 0; in php_oci_do_connect_ex()
1156 connection->used_this_request = 1; in php_oci_do_connect_ex()
1161 if (connection == connection->id->ptr && le) { in php_oci_do_connect_ex()
1173 connection = NULL; in php_oci_do_connect_ex()
1202 connection = (php_oci_connection *) ecalloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
1203 connection->hash_key = zend_string_dup(hashed_details.s, 0); in php_oci_do_connect_ex()
1204 connection->is_persistent = 0; in php_oci_do_connect_ex()
1205 ZVAL_UNDEF(&connection->taf_callback); in php_oci_do_connect_ex()
1207 connection->client_id = NULL; in php_oci_do_connect_ex()
1210 connection = (php_oci_connection *) calloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
1211 if (connection == NULL) { in php_oci_do_connect_ex()
1214 connection->hash_key = zend_string_dup(hashed_details.s, 1); in php_oci_do_connect_ex()
1215 if (connection->hash_key == NULL) { in php_oci_do_connect_ex()
1216 free(connection); in php_oci_do_connect_ex()
1219 connection->is_persistent = 1; in php_oci_do_connect_ex()
1220 ZVAL_UNDEF(&connection->taf_callback); in php_oci_do_connect_ex()
1222 connection->client_id = NULL; in php_oci_do_connect_ex()
1226 connection = (php_oci_connection *) ecalloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
1227 connection->hash_key = zend_string_dup(hashed_details.s, 0); in php_oci_do_connect_ex()
1228 connection->is_persistent = 0; in php_oci_do_connect_ex()
1229 ZVAL_UNDEF(&connection->taf_callback); in php_oci_do_connect_ex()
1231 connection->client_id = NULL; in php_oci_do_connect_ex()
1243 if (use_spool && !connection->is_persistent) { in php_oci_do_connect_ex()
1246 php_oci_connection_close(connection); in php_oci_do_connect_ex()
1253connection->idle_expiry = (OCI_G(persistent_timeout) > 0) ? (timestamp + OCI_G(persistent_timeout)… in php_oci_do_connect_ex()
1256 connection->passwd_changed = 0; in php_oci_do_connect_ex()
1261 connection->charset = charsetid; in php_oci_do_connect_ex()
1263 connection->charset = charsetid_nls_lang; in php_oci_do_connect_ex()
1270 …if (php_oci_old_create_session(connection, dbname, dbname_len, username, username_len, password, p… in php_oci_do_connect_ex()
1271 php_oci_connection_close(connection); in php_oci_do_connect_ex()
1276 …if (php_oci_create_session(connection, session_pool, dbname, dbname_len, username, username_len, p… in php_oci_do_connect_ex()
1277 php_oci_connection_close(connection); in php_oci_do_connect_ex()
1283 connection->is_open = 1; in php_oci_do_connect_ex()
1286 if (connection->is_persistent) { in php_oci_do_connect_ex()
1287 connection->used_this_request = 1; in php_oci_do_connect_ex()
1288 PHP_OCI_REGISTER_RESOURCE(connection, le_pconnection); in php_oci_do_connect_ex()
1295 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1297 zend_register_persistent_resource_ex(connection->hash_key, connection, le_pconnection); in php_oci_do_connect_ex()
1301 PHP_OCI_REGISTER_RESOURCE(connection, le_connection); in php_oci_do_connect_ex()
1302 new_le.ptr = connection->id; in php_oci_do_connect_ex()
1304 …zend_hash_update_mem(&EG(regular_list), connection->hash_key, (void *)&new_le, sizeof(zend_resourc… in php_oci_do_connect_ex()
1307 PHP_OCI_REGISTER_RESOURCE(connection, le_connection); in php_oci_do_connect_ex()
1313 …DTRACE_OCI8_CONNECT_TYPE(connection->is_persistent ? 1 : 0, exclusive ? 1 : 0, connection, OCI_G(n… in php_oci_do_connect_ex()
1317 return connection; in php_oci_do_connect_ex()
1325 static int php_oci_connection_ping(php_oci_connection *connection) in php_oci_connection_ping() argument
1340 PHP_OCI_CALL_RETURN(errstatus, OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_ping()
1343 …PHP_OCI_CALL_RETURN(errstatus, OCIServerVersion, (connection->svc, OCI_G(err), (text *)version, si… in php_oci_connection_ping()
1368 static int php_oci_connection_status(php_oci_connection *connection) in php_oci_connection_status() argument
1374 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)connection->server, OCI_HTYPE_SERVER, (dvoid … in php_oci_connection_status()
1389 int php_oci_connection_rollback(php_oci_connection *connection) in php_oci_connection_rollback() argument
1393 PHP_OCI_CALL_RETURN(errstatus, OCITransRollback, (connection->svc, connection->err, (ub4) 0)); in php_oci_connection_rollback()
1394 connection->rb_on_disconnect = 0; in php_oci_connection_rollback()
1397 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_connection_rollback()
1398 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_rollback()
1401 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_connection_rollback()
1410 int php_oci_connection_commit(php_oci_connection *connection) in php_oci_connection_commit() argument
1414 PHP_OCI_CALL_RETURN(errstatus, OCITransCommit, (connection->svc, connection->err, (ub4) 0)); in php_oci_connection_commit()
1415 connection->rb_on_disconnect = 0; in php_oci_connection_commit()
1418 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_connection_commit()
1419 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_commit()
1422 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_connection_commit()
1431 static int php_oci_connection_close(php_oci_connection *connection) in php_oci_connection_close() argument
1438 DTRACE_OCI8_CONNECTION_CLOSE(connection); in php_oci_connection_close()
1442 if (!connection->is_stub) { in php_oci_connection_close()
1444 php_oci_connection_release(connection); in php_oci_connection_close()
1447 if (!connection->using_spool && connection->svc) { in php_oci_connection_close()
1448 PHP_OCI_CALL(OCISessionEnd, (connection->svc, connection->err, connection->session, (ub4) 0)); in php_oci_connection_close()
1451 if (connection->err) { in php_oci_connection_close()
1452 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->err, (ub4) OCI_HTYPE_ERROR)); in php_oci_connection_close()
1454 if (connection->authinfo) { in php_oci_connection_close()
1455 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->authinfo, (ub4) OCI_HTYPE_AUTHINFO)); in php_oci_connection_close()
1459 if (!connection->using_spool) { in php_oci_connection_close()
1460 if (connection->session) { in php_oci_connection_close()
1461 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->session, OCI_HTYPE_SESSION)); in php_oci_connection_close()
1464 if (connection->is_attached) { in php_oci_connection_close()
1465 PHP_OCI_CALL(OCIServerDetach, (connection->server, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_close()
1468 if (connection->svc) { in php_oci_connection_close()
1469 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX)); in php_oci_connection_close()
1472 if (connection->server) { in php_oci_connection_close()
1473 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->server, (ub4) OCI_HTYPE_SERVER)); in php_oci_connection_close()
1476 if (connection->env) { in php_oci_connection_close()
1477 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->env, OCI_HTYPE_ENV)); in php_oci_connection_close()
1479 } else if (connection->private_spool) { in php_oci_connection_close()
1483 php_oci_spool_close(connection->private_spool); in php_oci_connection_close()
1484 connection->private_spool = NULL; in php_oci_connection_close()
1487 if (GC_REFCOUNT(connection->hash_key) >= 2) { in php_oci_connection_close()
1488 zend_hash_del(&EG(regular_list), connection->hash_key); in php_oci_connection_close()
1491 if (connection->hash_key) { in php_oci_connection_close()
1492 pefree(connection->hash_key, connection->is_persistent); in php_oci_connection_close()
1493 connection->hash_key = NULL; in php_oci_connection_close()
1496 if (connection->client_id) { in php_oci_connection_close()
1497 pefree(connection->client_id, connection->is_persistent); in php_oci_connection_close()
1498 connection->client_id = NULL; in php_oci_connection_close()
1502 if (!Z_ISUNDEF(connection->taf_callback)) { in php_oci_connection_close()
1504 if (!Z_ISNULL(connection->taf_callback)) { in php_oci_connection_close()
1505 zval_ptr_dtor(&connection->taf_callback); in php_oci_connection_close()
1507 ZVAL_UNDEF(&connection->taf_callback); in php_oci_connection_close()
1510 pefree(connection, connection->is_persistent); in php_oci_connection_close()
1511 connection = NULL; in php_oci_connection_close()
1523 int php_oci_connection_release(php_oci_connection *connection) in php_oci_connection_release() argument
1529 if (connection->is_stub) { in php_oci_connection_release()
1533 if (connection->descriptors) { in php_oci_connection_release()
1534 php_oci_connection_descriptors_free(connection); in php_oci_connection_release()
1537 if (connection->svc) { in php_oci_connection_release()
1539 if (connection->rb_on_disconnect) { in php_oci_connection_release()
1540 if (php_oci_connection_rollback(connection)) { in php_oci_connection_release()
1548 connection->idle_expiry = timestamp + OCI_G(persistent_timeout); in php_oci_connection_release()
1552 if (connection->next_pingp) { in php_oci_connection_release()
1554 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_connection_release()
1557 *(connection->next_pingp) = 0; in php_oci_connection_release()
1562 if (connection->using_spool) { in php_oci_connection_release()
1574 if (!connection->is_persistent) { in php_oci_connection_release()
1579 if (connection->svc) { in php_oci_connection_release()
1580 PHP_OCI_CALL(OCISessionRelease, (connection->svc, connection->err, NULL, in php_oci_connection_release()
1586 connection->svc = NULL; in php_oci_connection_release()
1587 connection->server = NULL; in php_oci_connection_release()
1588 connection->session = NULL; in php_oci_connection_release()
1590connection->is_attached = connection->is_open = connection->rb_on_disconnect = connection->used_th… in php_oci_connection_release()
1591 connection->is_stub = 1; in php_oci_connection_release()
1596 connection->next_pingp = NULL; in php_oci_connection_release()
1598 if (connection->client_id) { in php_oci_connection_release()
1599 pefree(connection->client_id, connection->is_persistent); in php_oci_connection_release()
1600 connection->client_id = NULL; in php_oci_connection_release()
1606 connection->id = NULL; in php_oci_connection_release()
1617 int php_oci_password_change(php_oci_connection *connection, char *user, int user_len, char *pass_ol… in php_oci_password_change() argument
1621 …PHP_OCI_CALL_RETURN(errstatus, OCIPasswordChange, (connection->svc, connection->err, (text *)user,… in php_oci_password_change()
1624 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_password_change()
1625 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_password_change()
1628 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_password_change()
1629 connection->passwd_changed = 1; in php_oci_password_change()
1659 int php_oci_server_get_version(php_oci_connection *connection, char *version, size_t version_size) in php_oci_server_get_version() argument
1663 …PHP_OCI_CALL_RETURN(errstatus, OCIServerVersion, (connection->svc, connection->err, (text *)versio… in php_oci_server_get_version()
1666 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_server_get_version()
1667 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_server_get_version()
1951 php_oci_connection *connection; in php_oci_persistent_helper() local
1957 connection = (php_oci_connection *)le->ptr; in php_oci_persistent_helper()
1960 …if (connection->used_this_request && !Z_ISUNDEF(connection->taf_callback) && !Z_ISNULL(connection-… in php_oci_persistent_helper()
1961 php_oci_unregister_taf_callback(connection); in php_oci_persistent_helper()
1964 if (!connection->used_this_request && OCI_G(persistent_timeout) != -1) { in php_oci_persistent_helper()
1967 …DTRACE_OCI8_CONNECT_EXPIRY(connection, connection->is_stub ? 1 : 0, (long)connection->idle_expiry,… in php_oci_persistent_helper()
1970 if (connection->idle_expiry < timestamp) { in php_oci_persistent_helper()
2228 static int php_oci_old_create_session(php_oci_connection *connection, char *dbname, int dbname_len,… in php_oci_old_create_session() argument
2240 if (!(connection->env = php_oci_create_env(connection->charset))) { in php_oci_old_create_session()
2245 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->serv… in php_oci_old_create_session()
2254 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIServerAttach, (connection->server, OCI_G(err), (text *)dbna… in php_oci_old_create_session()
2261 connection->is_attached = 1; in php_oci_old_create_session()
2264 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->sess… in php_oci_old_create_session()
2273 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_old_create_session()
2282 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->svc)… in php_oci_old_create_session()
2292 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2303 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2315 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2327 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2337 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2346 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2356 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIPasswordChange, (connection->svc, OCI_G(err), (text *)usern… in php_oci_old_create_session()
2363 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_old_create_session()
2382 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCISessionBegin, (connection->svc, OCI_G(err), connection->ses… in php_oci_old_create_session()
2397 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_old_create_session()
2402 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX… in php_oci_old_create_session()
2418 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char… in php_oci_create_session() argument
2435 if (connection->is_persistent && !connection->private_spool && in php_oci_create_session()
2436 …!(connection->private_spool = php_oci_create_spool(username, username_len, password, password_len,… in php_oci_create_session()
2439 actual_spool = (connection->is_persistent) ? (connection->private_spool) : (session_pool); in php_oci_create_session()
2441 connection->env = actual_spool->env; in php_oci_create_session()
2446 if (!connection->using_spool) { in php_oci_create_session()
2447 connection->using_spool = 1; in php_oci_create_session()
2452 …DTRACE_OCI8_SESSPOOL_TYPE(session_pool ? 1 : 0, session_pool ? session_pool : connection->private_… in php_oci_create_session()
2460 if (!connection->err) { in php_oci_create_session()
2461 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_create_session()
2470 if (!connection->authinfo) { in php_oci_create_session()
2471 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->auth… in php_oci_create_session()
2480 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_SE… in php_oci_create_session()
2487 if (connection->is_persistent) in php_oci_create_session()
2492 …PHP_OCI_CALL_RETURN(OCI_G(errcode),OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_AUT… in php_oci_create_session()
2522 …_RETURN(OCI_G(errcode),OCISessionGet, (connection->env, OCI_G(err), &(connection->svc), (OCIAuthIn… in php_oci_create_session()
2537 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_create_session()
2539 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_create_session()
2542 …de), OCIContextGetValue, (connection->session, OCI_G(err), (ub1 *)"NEXT_PING", (ub1)sizeof("NEXT_P… in php_oci_create_session()
2548 if (!(connection->next_pingp)){ in php_oci_create_session()
2550 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_create_session()
2554 } else if ((*(connection->next_pingp) > 0) && (timestamp >= *(connection->next_pingp))) { in php_oci_create_session()
2555 if (php_oci_connection_ping(connection)) { in php_oci_create_session()
2557 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_create_session()
2560 …PHP_OCI_CALL(OCISessionRelease, (connection->svc, connection->err, NULL,0, (ub4) OCI_SESSRLS_DROPS… in php_oci_create_session()
2561 connection->svc = NULL; in php_oci_create_session()
2562 connection->server = NULL; in php_oci_create_session()
2563 connection->session = NULL; in php_oci_create_session()
2566 } while (!(connection->svc)); in php_oci_create_session()
2568 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX… in php_oci_create_session()
2576 connection->is_stub = 0; in php_oci_create_session()
2577 connection->is_attached = connection->is_open = 1; in php_oci_create_session()
2636 static sword php_oci_ping_init(php_oci_connection *connection, OCIError *errh) in php_oci_ping_init() argument
2640 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextGetValue, (connection->session, errh, (ub1 *)"NEXT_P… in php_oci_ping_init()
2647 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIMemoryAlloc, (connection->session, errh, (void **)&next_pin… in php_oci_ping_init()
2661 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextSetValue, (connection->session, errh, OCI_DURATION_S… in php_oci_ping_init()
2663 OCIMemoryFree(connection->session, errh, next_pingp); in php_oci_ping_init()
2668 connection->next_pingp = next_pingp; in php_oci_ping_init()
2678 void php_oci_dtrace_check_connection(php_oci_connection *connection, sb4 errcode, ub4 serverStatus) in php_oci_dtrace_check_connection() argument
2682 …DTRACE_OCI8_CHECK_CONNECTION(connection, connection->client_id, connection->is_open ? 1 : 0, (long… in php_oci_dtrace_check_connection()