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);
506 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_connection_list_dtor() local
508 if (connection) { in php_oci_connection_list_dtor()
509 php_oci_connection_close(connection); in php_oci_connection_list_dtor()
521 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_pconnection_list_dtor() local
523 if (connection) { in php_oci_pconnection_list_dtor()
524 php_oci_connection_close(connection); in php_oci_pconnection_list_dtor()
538 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_pconnection_list_np_dtor() local
554 if (!connection->is_open || in php_oci_pconnection_list_np_dtor()
555 connection->passwd_changed || in php_oci_pconnection_list_np_dtor()
560 if (connection->hash_key) { in php_oci_pconnection_list_np_dtor()
561 zvp = zend_hash_find(&EG(persistent_list), connection->hash_key); in php_oci_pconnection_list_np_dtor()
563 if (le != NULL && le->type == le_pconnection && le->ptr == connection) { in php_oci_pconnection_list_np_dtor()
564 zend_hash_del(&EG(persistent_list), connection->hash_key); in php_oci_pconnection_list_np_dtor()
567 php_oci_connection_close(connection); in php_oci_pconnection_list_np_dtor()
574 DTRACE_OCI8_CONNECT_P_DTOR_CLOSE(connection); in php_oci_pconnection_list_np_dtor()
587 php_oci_connection_release(connection); in php_oci_pconnection_list_np_dtor()
591 DTRACE_OCI8_CONNECT_P_DTOR_RELEASE(connection); in php_oci_pconnection_list_np_dtor()
740 void php_oci_connection_descriptors_free(php_oci_connection *connection) in php_oci_connection_descriptors_free() argument
742 zend_hash_destroy(connection->descriptors); in php_oci_connection_descriptors_free()
743 efree(connection->descriptors); in php_oci_connection_descriptors_free()
744 connection->descriptors = NULL; in php_oci_connection_descriptors_free()
745 connection->descriptor_count = 0; in php_oci_connection_descriptors_free()
848 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode); in php_oci_fetch_sqltext_offset()
856 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode); in php_oci_fetch_sqltext_offset()
869 php_oci_connection *connection; in php_oci_do_connect() local
896 …connection = php_oci_do_connect_ex(username, (int) username_len, password, (int) password_len, NUL… in php_oci_do_connect()
900 DTRACE_OCI8_CONNECT_RETURN(connection); in php_oci_do_connect()
905 if (!connection) { in php_oci_do_connect()
908 RETURN_RES(connection->id); in php_oci_do_connect()
923 php_oci_connection *connection = NULL; in php_oci_do_connect_ex() local
1054 connection = (php_oci_connection *)le->ptr; in php_oci_do_connect_ex()
1064 connection = (php_oci_connection *)ptr->ptr; in php_oci_do_connect_ex()
1071 DTRACE_OCI8_CONNECT_LOOKUP(connection, connection && connection->is_stub ? 1 : 0); in php_oci_do_connect_ex()
1082 if (connection && connection->is_persistent && connection->is_stub) { in php_oci_do_connect_ex()
1083 …if (php_oci_create_session(connection, NULL, dbname, dbname_len, username, username_len, password,… in php_oci_do_connect_ex()
1085 zend_hash_del(&EG(persistent_list), connection->hash_key); in php_oci_do_connect_ex()
1093 if (connection) { in php_oci_do_connect_ex()
1094 if (connection->is_open) { in php_oci_do_connect_ex()
1096 if (connection->is_persistent) { in php_oci_do_connect_ex()
1103 if (php_oci_connection_status(connection)) { in php_oci_do_connect_ex()
1111 …if (!ping_done && (*(connection->next_pingp) > 0) && (timestamp >= *(connection->next_pingp)) && !… in php_oci_do_connect_ex()
1118 connection->used_this_request = 1; in php_oci_do_connect_ex()
1119 if (connection->id) { in php_oci_do_connect_ex()
1120 tmp_val = zend_hash_index_find(&EG(regular_list), connection->id->handle); in php_oci_do_connect_ex()
1129 connection = tmp; in php_oci_do_connect_ex()
1130 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1133 PHP_OCI_REGISTER_RESOURCE(connection, le_pconnection); in php_oci_do_connect_ex()
1140 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1144 return connection; in php_oci_do_connect_ex()
1151 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1152 return connection; in php_oci_do_connect_ex()
1161 connection->is_open = 0; in php_oci_do_connect_ex()
1162 connection->used_this_request = 1; in php_oci_do_connect_ex()
1167 if (connection == connection->id->ptr && le) { in php_oci_do_connect_ex()
1179 connection = NULL; in php_oci_do_connect_ex()
1208 connection = (php_oci_connection *) ecalloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
1209 connection->hash_key = zend_string_dup(hashed_details.s, 0); in php_oci_do_connect_ex()
1210 connection->is_persistent = 0; in php_oci_do_connect_ex()
1211 ZVAL_UNDEF(&connection->taf_callback); in php_oci_do_connect_ex()
1213 connection->client_id = NULL; in php_oci_do_connect_ex()
1216 connection = (php_oci_connection *) calloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
1217 if (connection == NULL) { in php_oci_do_connect_ex()
1220 connection->hash_key = zend_string_dup(hashed_details.s, 1); in php_oci_do_connect_ex()
1221 if (connection->hash_key == NULL) { in php_oci_do_connect_ex()
1222 free(connection); in php_oci_do_connect_ex()
1225 connection->is_persistent = 1; in php_oci_do_connect_ex()
1226 ZVAL_UNDEF(&connection->taf_callback); in php_oci_do_connect_ex()
1228 connection->client_id = NULL; in php_oci_do_connect_ex()
1232 connection = (php_oci_connection *) ecalloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
1233 connection->hash_key = zend_string_dup(hashed_details.s, 0); in php_oci_do_connect_ex()
1234 connection->is_persistent = 0; in php_oci_do_connect_ex()
1235 ZVAL_UNDEF(&connection->taf_callback); in php_oci_do_connect_ex()
1237 connection->client_id = NULL; in php_oci_do_connect_ex()
1249 if (use_spool && !connection->is_persistent) { in php_oci_do_connect_ex()
1252 php_oci_connection_close(connection); in php_oci_do_connect_ex()
1259 …connection->idle_expiry = (OCI_G(persistent_timeout) > 0) ? (timestamp + OCI_G(persistent_timeout)… in php_oci_do_connect_ex()
1262 connection->passwd_changed = 0; in php_oci_do_connect_ex()
1267 connection->charset = charsetid; in php_oci_do_connect_ex()
1269 connection->charset = charsetid_nls_lang; in php_oci_do_connect_ex()
1276 …if (php_oci_old_create_session(connection, dbname, dbname_len, username, username_len, password, p… in php_oci_do_connect_ex()
1277 php_oci_connection_close(connection); in php_oci_do_connect_ex()
1282 …if (php_oci_create_session(connection, session_pool, dbname, dbname_len, username, username_len, p… in php_oci_do_connect_ex()
1283 php_oci_connection_close(connection); in php_oci_do_connect_ex()
1289 connection->is_open = 1; in php_oci_do_connect_ex()
1292 if (connection->is_persistent) { in php_oci_do_connect_ex()
1293 connection->used_this_request = 1; in php_oci_do_connect_ex()
1294 PHP_OCI_REGISTER_RESOURCE(connection, le_pconnection); in php_oci_do_connect_ex()
1301 GC_ADDREF(connection->id); in php_oci_do_connect_ex()
1303 zend_register_persistent_resource_ex(connection->hash_key, connection, le_pconnection); in php_oci_do_connect_ex()
1307 PHP_OCI_REGISTER_RESOURCE(connection, le_connection); in php_oci_do_connect_ex()
1308 new_le.ptr = connection->id; in php_oci_do_connect_ex()
1310 …zend_hash_update_mem(&EG(regular_list), connection->hash_key, (void *)&new_le, sizeof(zend_resourc… in php_oci_do_connect_ex()
1313 PHP_OCI_REGISTER_RESOURCE(connection, le_connection); in php_oci_do_connect_ex()
1319 …DTRACE_OCI8_CONNECT_TYPE(connection->is_persistent ? 1 : 0, exclusive ? 1 : 0, connection, OCI_G(n… in php_oci_do_connect_ex()
1323 return connection; in php_oci_do_connect_ex()
1331 static int php_oci_connection_ping(php_oci_connection *connection) in php_oci_connection_ping() argument
1346 PHP_OCI_CALL_RETURN(errstatus, OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_ping()
1349 …PHP_OCI_CALL_RETURN(errstatus, OCIServerVersion, (connection->svc, OCI_G(err), (text *)version, si… in php_oci_connection_ping()
1374 static int php_oci_connection_status(php_oci_connection *connection) in php_oci_connection_status() argument
1380 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)connection->server, OCI_HTYPE_SERVER, (dvoid … in php_oci_connection_status()
1395 int php_oci_connection_rollback(php_oci_connection *connection) in php_oci_connection_rollback() argument
1399 PHP_OCI_CALL_RETURN(errstatus, OCITransRollback, (connection->svc, connection->err, (ub4) 0)); in php_oci_connection_rollback()
1400 connection->rb_on_disconnect = 0; in php_oci_connection_rollback()
1403 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_connection_rollback()
1404 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_rollback()
1407 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_connection_rollback()
1416 int php_oci_connection_commit(php_oci_connection *connection) in php_oci_connection_commit() argument
1420 PHP_OCI_CALL_RETURN(errstatus, OCITransCommit, (connection->svc, connection->err, (ub4) 0)); in php_oci_connection_commit()
1421 connection->rb_on_disconnect = 0; in php_oci_connection_commit()
1424 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_connection_commit()
1425 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_commit()
1428 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_connection_commit()
1437 static int php_oci_connection_close(php_oci_connection *connection) in php_oci_connection_close() argument
1444 DTRACE_OCI8_CONNECTION_CLOSE(connection); in php_oci_connection_close()
1448 if (!connection->is_stub) { in php_oci_connection_close()
1450 php_oci_connection_release(connection); in php_oci_connection_close()
1453 if (!connection->using_spool && connection->svc) { in php_oci_connection_close()
1454 PHP_OCI_CALL(OCISessionEnd, (connection->svc, connection->err, connection->session, (ub4) 0)); in php_oci_connection_close()
1457 if (connection->err) { in php_oci_connection_close()
1458 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->err, (ub4) OCI_HTYPE_ERROR)); in php_oci_connection_close()
1460 if (connection->authinfo) { in php_oci_connection_close()
1461 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->authinfo, (ub4) OCI_HTYPE_AUTHINFO)); in php_oci_connection_close()
1465 if (!connection->using_spool) { in php_oci_connection_close()
1466 if (connection->session) { in php_oci_connection_close()
1467 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->session, OCI_HTYPE_SESSION)); in php_oci_connection_close()
1470 if (connection->is_attached) { in php_oci_connection_close()
1471 PHP_OCI_CALL(OCIServerDetach, (connection->server, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_close()
1474 if (connection->svc) { in php_oci_connection_close()
1475 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX)); in php_oci_connection_close()
1478 if (connection->server) { in php_oci_connection_close()
1479 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->server, (ub4) OCI_HTYPE_SERVER)); in php_oci_connection_close()
1482 if (connection->env) { in php_oci_connection_close()
1483 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->env, OCI_HTYPE_ENV)); in php_oci_connection_close()
1485 } else if (connection->private_spool) { in php_oci_connection_close()
1489 php_oci_spool_close(connection->private_spool); in php_oci_connection_close()
1490 connection->private_spool = NULL; in php_oci_connection_close()
1493 if (GC_REFCOUNT(connection->hash_key) >= 2) { in php_oci_connection_close()
1494 zend_hash_del(&EG(regular_list), connection->hash_key); in php_oci_connection_close()
1497 if (connection->hash_key) { in php_oci_connection_close()
1498 pefree(connection->hash_key, connection->is_persistent); in php_oci_connection_close()
1499 connection->hash_key = NULL; in php_oci_connection_close()
1502 if (connection->client_id) { in php_oci_connection_close()
1503 pefree(connection->client_id, connection->is_persistent); in php_oci_connection_close()
1504 connection->client_id = NULL; in php_oci_connection_close()
1508 if (!Z_ISUNDEF(connection->taf_callback)) { in php_oci_connection_close()
1510 if (!Z_ISNULL(connection->taf_callback)) { in php_oci_connection_close()
1511 zval_ptr_dtor(&connection->taf_callback); in php_oci_connection_close()
1513 ZVAL_UNDEF(&connection->taf_callback); in php_oci_connection_close()
1516 pefree(connection, connection->is_persistent); in php_oci_connection_close()
1517 connection = NULL; in php_oci_connection_close()
1529 int php_oci_connection_release(php_oci_connection *connection) in php_oci_connection_release() argument
1535 if (connection->is_stub) { in php_oci_connection_release()
1539 if (connection->descriptors) { in php_oci_connection_release()
1540 php_oci_connection_descriptors_free(connection); in php_oci_connection_release()
1543 if (connection->svc) { in php_oci_connection_release()
1545 if (connection->rb_on_disconnect) { in php_oci_connection_release()
1546 if (php_oci_connection_rollback(connection)) { in php_oci_connection_release()
1554 connection->idle_expiry = timestamp + OCI_G(persistent_timeout); in php_oci_connection_release()
1558 if (connection->next_pingp) { in php_oci_connection_release()
1560 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_connection_release()
1563 *(connection->next_pingp) = 0; in php_oci_connection_release()
1568 if (connection->using_spool) { in php_oci_connection_release()
1580 if (!connection->is_persistent) { in php_oci_connection_release()
1585 if (connection->svc) { in php_oci_connection_release()
1586 PHP_OCI_CALL(OCISessionRelease, (connection->svc, connection->err, NULL, in php_oci_connection_release()
1592 connection->svc = NULL; in php_oci_connection_release()
1593 connection->server = NULL; in php_oci_connection_release()
1594 connection->session = NULL; in php_oci_connection_release()
1596 …connection->is_attached = connection->is_open = connection->rb_on_disconnect = connection->used_th… in php_oci_connection_release()
1597 connection->is_stub = 1; in php_oci_connection_release()
1602 connection->next_pingp = NULL; in php_oci_connection_release()
1604 if (connection->client_id) { in php_oci_connection_release()
1605 pefree(connection->client_id, connection->is_persistent); in php_oci_connection_release()
1606 connection->client_id = NULL; in php_oci_connection_release()
1612 connection->id = NULL; in php_oci_connection_release()
1623 int php_oci_password_change(php_oci_connection *connection, char *user, int user_len, char *pass_ol… in php_oci_password_change() argument
1627 …PHP_OCI_CALL_RETURN(errstatus, OCIPasswordChange, (connection->svc, connection->err, (text *)user,… in php_oci_password_change()
1630 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_password_change()
1631 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_password_change()
1634 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_password_change()
1635 connection->passwd_changed = 1; in php_oci_password_change()
1665 int php_oci_server_get_version(php_oci_connection *connection, char *version, size_t version_size) in php_oci_server_get_version() argument
1669 …PHP_OCI_CALL_RETURN(errstatus, OCIServerVersion, (connection->svc, connection->err, (text *)versio… in php_oci_server_get_version()
1672 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_server_get_version()
1673 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_server_get_version()
1957 php_oci_connection *connection; in php_oci_persistent_helper() local
1963 connection = (php_oci_connection *)le->ptr; in php_oci_persistent_helper()
1966 …if (connection->used_this_request && !Z_ISUNDEF(connection->taf_callback) && !Z_ISNULL(connection-… in php_oci_persistent_helper()
1967 php_oci_unregister_taf_callback(connection); in php_oci_persistent_helper()
1970 if (!connection->used_this_request && OCI_G(persistent_timeout) != -1) { in php_oci_persistent_helper()
1973 …DTRACE_OCI8_CONNECT_EXPIRY(connection, connection->is_stub ? 1 : 0, (long)connection->idle_expiry,… in php_oci_persistent_helper()
1976 if (connection->idle_expiry < timestamp) { in php_oci_persistent_helper()
2234 static int php_oci_old_create_session(php_oci_connection *connection, char *dbname, int dbname_len,… in php_oci_old_create_session() argument
2246 if (!(connection->env = php_oci_create_env(connection->charset))) { in php_oci_old_create_session()
2251 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->serv… in php_oci_old_create_session()
2260 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIServerAttach, (connection->server, OCI_G(err), (text *)dbna… in php_oci_old_create_session()
2267 connection->is_attached = 1; in php_oci_old_create_session()
2270 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->sess… in php_oci_old_create_session()
2279 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_old_create_session()
2288 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->svc)… in php_oci_old_create_session()
2298 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2309 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2321 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2333 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
2343 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2352 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
2362 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIPasswordChange, (connection->svc, OCI_G(err), (text *)usern… in php_oci_old_create_session()
2369 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_old_create_session()
2388 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCISessionBegin, (connection->svc, OCI_G(err), connection->ses… in php_oci_old_create_session()
2403 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_old_create_session()
2408 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX… in php_oci_old_create_session()
2424 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char… in php_oci_create_session() argument
2441 if (connection->is_persistent && !connection->private_spool && in php_oci_create_session()
2442 …!(connection->private_spool = php_oci_create_spool(username, username_len, password, password_len,… in php_oci_create_session()
2445 actual_spool = (connection->is_persistent) ? (connection->private_spool) : (session_pool); in php_oci_create_session()
2447 connection->env = actual_spool->env; in php_oci_create_session()
2452 if (!connection->using_spool) { in php_oci_create_session()
2453 connection->using_spool = 1; in php_oci_create_session()
2458 …DTRACE_OCI8_SESSPOOL_TYPE(session_pool ? 1 : 0, session_pool ? session_pool : connection->private_… in php_oci_create_session()
2466 if (!connection->err) { in php_oci_create_session()
2467 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_create_session()
2476 if (!connection->authinfo) { in php_oci_create_session()
2477 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->auth… in php_oci_create_session()
2486 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_SE… in php_oci_create_session()
2493 if (connection->is_persistent) in php_oci_create_session()
2498 …PHP_OCI_CALL_RETURN(OCI_G(errcode),OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_AUT… in php_oci_create_session()
2528 …_RETURN(OCI_G(errcode),OCISessionGet, (connection->env, OCI_G(err), &(connection->svc), (OCIAuthIn… in php_oci_create_session()
2543 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_create_session()
2545 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_create_session()
2548 …de), OCIContextGetValue, (connection->session, OCI_G(err), (ub1 *)"NEXT_PING", (ub1)sizeof("NEXT_P… in php_oci_create_session()
2554 if (!(connection->next_pingp)){ in php_oci_create_session()
2556 if (php_oci_ping_init(connection, OCI_G(err)) != OCI_SUCCESS) { in php_oci_create_session()
2560 } else if ((*(connection->next_pingp) > 0) && (timestamp >= *(connection->next_pingp))) { in php_oci_create_session()
2561 if (php_oci_connection_ping(connection)) { in php_oci_create_session()
2563 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_create_session()
2566 …PHP_OCI_CALL(OCISessionRelease, (connection->svc, connection->err, NULL,0, (ub4) OCI_SESSRLS_DROPS… in php_oci_create_session()
2567 connection->svc = NULL; in php_oci_create_session()
2568 connection->server = NULL; in php_oci_create_session()
2569 connection->session = NULL; in php_oci_create_session()
2572 } while (!(connection->svc)); in php_oci_create_session()
2574 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX… in php_oci_create_session()
2582 connection->is_stub = 0; in php_oci_create_session()
2583 connection->is_attached = connection->is_open = 1; in php_oci_create_session()
2642 static sword php_oci_ping_init(php_oci_connection *connection, OCIError *errh) in php_oci_ping_init() argument
2646 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextGetValue, (connection->session, errh, (ub1 *)"NEXT_P… in php_oci_ping_init()
2653 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIMemoryAlloc, (connection->session, errh, (void **)&next_pin… in php_oci_ping_init()
2667 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextSetValue, (connection->session, errh, OCI_DURATION_S… in php_oci_ping_init()
2669 OCIMemoryFree(connection->session, errh, next_pingp); in php_oci_ping_init()
2674 connection->next_pingp = next_pingp; in php_oci_ping_init()
2684 void php_oci_dtrace_check_connection(php_oci_connection *connection, sb4 errcode, ub4 serverStatus) in php_oci_dtrace_check_connection() argument
2688 …DTRACE_OCI8_CHECK_CONNECTION(connection, connection->client_id, connection->is_open ? 1 : 0, (long… in php_oci_dtrace_check_connection()