Lines Matching refs:connection
147 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char…
148 static int php_oci_old_create_session(php_oci_connection *connection, char *dbname, int dbname_len,…
151 static sword php_oci_ping_init(php_oci_connection *connection, OCIError *errh TSRMLS_DC);
1393 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_connection_list_dtor() local
1395 if (connection) { in php_oci_connection_list_dtor()
1396 php_oci_connection_close(connection TSRMLS_CC); in php_oci_connection_list_dtor()
1407 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_pconnection_list_dtor() local
1409 if (connection) { in php_oci_pconnection_list_dtor()
1410 php_oci_connection_close(connection TSRMLS_CC); in php_oci_pconnection_list_dtor()
1423 php_oci_connection *connection = (php_oci_connection *)entry->ptr; in php_oci_pconnection_list_np_dtor() local
1438 if (!connection->is_open || in php_oci_pconnection_list_np_dtor()
1439 connection->passwd_changed || in php_oci_pconnection_list_np_dtor()
1444 …_list), connection->hash_key, strlen(connection->hash_key)+1, (void **) &le)== SUCCESS) && (le->ty… in php_oci_pconnection_list_np_dtor()
1445 zend_hash_del(&EG(persistent_list), connection->hash_key, strlen(connection->hash_key)+1); in php_oci_pconnection_list_np_dtor()
1448 php_oci_connection_close(connection TSRMLS_CC); in php_oci_pconnection_list_np_dtor()
1453 …php_printf ("OCI8 DEBUG L1: np_dtor cleaning up: (%p) at (%s:%d) \n", connection, __FILE__, __LINE… in php_oci_pconnection_list_np_dtor()
1466 php_oci_connection_release(connection TSRMLS_CC); in php_oci_pconnection_list_np_dtor()
1469 …php_printf ("OCI8 DEBUG L1: np_dtor releasing: (%p) at (%s:%d) \n", connection, __FILE__, __LINE__… in php_oci_pconnection_list_np_dtor()
1599 void php_oci_connection_descriptors_free(php_oci_connection *connection TSRMLS_DC) in php_oci_connection_descriptors_free()
1601 zend_hash_destroy(connection->descriptors); in php_oci_connection_descriptors_free()
1602 efree(connection->descriptors); in php_oci_connection_descriptors_free()
1603 connection->descriptors = NULL; in php_oci_connection_descriptors_free()
1604 connection->descriptor_count = 0; in php_oci_connection_descriptors_free()
1709 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode); in php_oci_fetch_sqltext_offset()
1717 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode); in php_oci_fetch_sqltext_offset()
1729 php_oci_connection *connection; in php_oci_do_connect() local
1745 …connection = php_oci_do_connect_ex(username, username_len, password, password_len, NULL, 0, dbname… in php_oci_do_connect()
1747 if (!connection) { in php_oci_do_connect()
1750 RETURN_RESOURCE(connection->rsrc_id); in php_oci_do_connect()
1763 php_oci_connection *connection = NULL; in php_oci_do_connect_ex() local
1895 connection = (php_oci_connection *)le->ptr; in php_oci_do_connect_ex()
1906 connection = (php_oci_connection *)ptr; in php_oci_do_connect_ex()
1913 if (connection && connection->is_stub) { in php_oci_do_connect_ex()
1914 …php_printf ("OCI8 DEBUG L1: Got a cached stub: (%p) at (%s:%d) \n", connection, __FILE__, __LINE__… in php_oci_do_connect_ex()
1915 } else if (connection) { in php_oci_do_connect_ex()
1916 …php_printf ("OCI8 DEBUG L1: Got a cached connection: (%p) at (%s:%d) \n", connection, __FILE__, __… in php_oci_do_connect_ex()
1929 if (connection && connection->is_persistent && connection->is_stub) { in php_oci_do_connect_ex()
1930 …if (php_oci_create_session(connection, NULL, dbname, dbname_len, username, username_len, password,… in php_oci_do_connect_ex()
1932 zend_hash_del(&EG(persistent_list), connection->hash_key, strlen(connection->hash_key)+1); in php_oci_do_connect_ex()
1940 if (connection) { in php_oci_do_connect_ex()
1941 if (connection->is_open) { in php_oci_do_connect_ex()
1943 if (connection->is_persistent) { in php_oci_do_connect_ex()
1951 if (php_oci_connection_status(connection TSRMLS_CC)) { in php_oci_do_connect_ex()
1959 …if (!ping_done && (*(connection->next_pingp) > 0) && (timestamp >= *(connection->next_pingp)) && !… in php_oci_do_connect_ex()
1965 connection->used_this_request = 1; in php_oci_do_connect_ex()
1966 tmp = (php_oci_connection *)zend_list_find(connection->rsrc_id, &rsrc_type); in php_oci_do_connect_ex()
1969 …sh_key, hashed_details.c, hashed_details.len) == 0 && zend_list_addref(connection->rsrc_id) == SUC… in php_oci_do_connect_ex()
1973 connection->rsrc_id = zend_list_insert(connection, le_pconnection TSRMLS_CC); in php_oci_do_connect_ex()
1975 connection->rsrc_id = zend_list_insert(connection, le_pconnection); in php_oci_do_connect_ex()
1983 zend_list_addref(connection->rsrc_id); in php_oci_do_connect_ex()
1987 return connection; in php_oci_do_connect_ex()
1994 zend_list_addref(connection->rsrc_id); in php_oci_do_connect_ex()
1995 return connection; in php_oci_do_connect_ex()
2005 connection->is_open = 0; in php_oci_do_connect_ex()
2006 connection->used_this_request = 1; in php_oci_do_connect_ex()
2011 …if (connection == zend_list_find(connection->rsrc_id, &rsrc_type) && rsrc_type == le_pconnection) { in php_oci_do_connect_ex()
2023 connection = NULL; in php_oci_do_connect_ex()
2052 connection = (php_oci_connection *) ecalloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
2053 connection->hash_key = estrndup(hashed_details.c, hashed_details.len); in php_oci_do_connect_ex()
2054 connection->is_persistent = 0; in php_oci_do_connect_ex()
2056 connection = (php_oci_connection *) calloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
2057 if (connection == NULL) { in php_oci_do_connect_ex()
2060 connection->hash_key = zend_strndup(hashed_details.c, hashed_details.len); in php_oci_do_connect_ex()
2061 if (connection->hash_key == NULL) { in php_oci_do_connect_ex()
2062 free(connection); in php_oci_do_connect_ex()
2065 connection->is_persistent = 1; in php_oci_do_connect_ex()
2068 connection = (php_oci_connection *) ecalloc(1, sizeof(php_oci_connection)); in php_oci_do_connect_ex()
2069 connection->hash_key = estrndup(hashed_details.c, hashed_details.len); in php_oci_do_connect_ex()
2070 connection->is_persistent = 0; in php_oci_do_connect_ex()
2081 if (use_spool && !connection->is_persistent) { in php_oci_do_connect_ex()
2084 php_oci_connection_close(connection TSRMLS_CC); in php_oci_do_connect_ex()
2090 …connection->idle_expiry = (OCI_G(persistent_timeout) > 0) ? (timestamp + OCI_G(persistent_timeout)… in php_oci_do_connect_ex()
2093 connection->passwd_changed = 0; in php_oci_do_connect_ex()
2098 connection->charset = charsetid; in php_oci_do_connect_ex()
2100 connection->charset = charsetid_nls_lang; in php_oci_do_connect_ex()
2107 …if (php_oci_old_create_session(connection, dbname, dbname_len, username, username_len, password, p… in php_oci_do_connect_ex()
2108 php_oci_connection_close(connection TSRMLS_CC); in php_oci_do_connect_ex()
2113 …if (php_oci_create_session(connection, session_pool, dbname, dbname_len, username, username_len, p… in php_oci_do_connect_ex()
2114 php_oci_connection_close(connection TSRMLS_CC); in php_oci_do_connect_ex()
2120 connection->is_open = 1; in php_oci_do_connect_ex()
2123 if (connection->is_persistent) { in php_oci_do_connect_ex()
2124 new_le.ptr = connection; in php_oci_do_connect_ex()
2126 connection->used_this_request = 1; in php_oci_do_connect_ex()
2128 connection->rsrc_id = zend_list_insert(connection, le_pconnection TSRMLS_CC); in php_oci_do_connect_ex()
2130 connection->rsrc_id = zend_list_insert(connection, le_pconnection); in php_oci_do_connect_ex()
2138 zend_list_addref(connection->rsrc_id); in php_oci_do_connect_ex()
2140 …zend_hash_update(&EG(persistent_list), connection->hash_key, strlen(connection->hash_key)+1, (void… in php_oci_do_connect_ex()
2145 connection->rsrc_id = zend_list_insert(connection, le_connection TSRMLS_CC); in php_oci_do_connect_ex()
2147 connection->rsrc_id = zend_list_insert(connection, le_connection); in php_oci_do_connect_ex()
2149 new_le.ptr = OCI8_INT_TO_PTR(connection->rsrc_id); in php_oci_do_connect_ex()
2151 …zend_hash_update(&EG(regular_list), connection->hash_key, strlen(connection->hash_key)+1, (void *)… in php_oci_do_connect_ex()
2155 connection->rsrc_id = zend_list_insert(connection, le_connection TSRMLS_CC); in php_oci_do_connect_ex()
2157 connection->rsrc_id = zend_list_insert(connection, le_connection); in php_oci_do_connect_ex()
2164 if (connection->is_persistent) { in php_oci_do_connect_ex()
2165 …php_printf ("OCI8 DEBUG L1: New Persistent Connection address: (%p) at (%s:%d) \n", connection, __… in php_oci_do_connect_ex()
2167 … DEBUG L1: New Non-Persistent Connection address: (%p) at (%s:%d) \n", connection, __FILE__, __LIN… in php_oci_do_connect_ex()
2172 return connection; in php_oci_do_connect_ex()
2180 static int php_oci_connection_ping(php_oci_connection *connection TSRMLS_DC) in php_oci_connection_ping()
2188 PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIPing, (connection->svc, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_ping()
2192 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIServerVersion, (connection->svc, OCI_G(err), (text *)versio… in php_oci_connection_ping()
2218 static int php_oci_connection_status(php_oci_connection *connection TSRMLS_DC) in php_oci_connection_status()
2223 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->server, OCI_HTYPE_SERVER, (d… in php_oci_connection_status()
2239 int php_oci_connection_rollback(php_oci_connection *connection TSRMLS_DC) in php_oci_connection_rollback()
2241 …PHP_OCI_CALL_RETURN(connection->errcode, OCITransRollback, (connection->svc, connection->err, (ub4… in php_oci_connection_rollback()
2242 connection->needs_commit = 0; in php_oci_connection_rollback()
2244 if (connection->errcode != OCI_SUCCESS) { in php_oci_connection_rollback()
2245 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_connection_rollback()
2246 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_rollback()
2256 int php_oci_connection_commit(php_oci_connection *connection TSRMLS_DC) in php_oci_connection_commit()
2258 …PHP_OCI_CALL_RETURN(connection->errcode, OCITransCommit, (connection->svc, connection->err, (ub4) … in php_oci_connection_commit()
2259 connection->needs_commit = 0; in php_oci_connection_commit()
2261 if (connection->errcode != OCI_SUCCESS) { in php_oci_connection_commit()
2262 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_connection_commit()
2263 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_commit()
2273 static int php_oci_connection_close(php_oci_connection *connection TSRMLS_DC) in php_oci_connection_close()
2278 if (!connection->is_stub) { in php_oci_connection_close()
2280 php_oci_connection_release(connection TSRMLS_CC); in php_oci_connection_close()
2283 if (!connection->using_spool && connection->svc) { in php_oci_connection_close()
2284 PHP_OCI_CALL(OCISessionEnd, (connection->svc, connection->err, connection->session, (ub4) 0)); in php_oci_connection_close()
2287 if (connection->err) { in php_oci_connection_close()
2288 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->err, (ub4) OCI_HTYPE_ERROR)); in php_oci_connection_close()
2290 if (connection->authinfo) { in php_oci_connection_close()
2291 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->authinfo, (ub4) OCI_HTYPE_AUTHINFO)); in php_oci_connection_close()
2295 if (!connection->using_spool) { in php_oci_connection_close()
2296 if (connection->session) { in php_oci_connection_close()
2297 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->session, OCI_HTYPE_SESSION)); in php_oci_connection_close()
2300 if (connection->is_attached) { in php_oci_connection_close()
2301 PHP_OCI_CALL(OCIServerDetach, (connection->server, OCI_G(err), OCI_DEFAULT)); in php_oci_connection_close()
2304 if (connection->svc) { in php_oci_connection_close()
2305 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX)); in php_oci_connection_close()
2308 if (connection->server) { in php_oci_connection_close()
2309 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->server, (ub4) OCI_HTYPE_SERVER)); in php_oci_connection_close()
2312 if (connection->env) { in php_oci_connection_close()
2313 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) connection->env, OCI_HTYPE_ENV)); in php_oci_connection_close()
2315 } else if (connection->private_spool) { in php_oci_connection_close()
2319 php_oci_spool_close(connection->private_spool TSRMLS_CC); in php_oci_connection_close()
2322 if (connection->is_persistent) { in php_oci_connection_close()
2323 if (connection->hash_key) { in php_oci_connection_close()
2324 free(connection->hash_key); in php_oci_connection_close()
2326 free(connection); in php_oci_connection_close()
2328 if (connection->hash_key) { in php_oci_connection_close()
2329 efree(connection->hash_key); in php_oci_connection_close()
2331 efree(connection); in php_oci_connection_close()
2333 connection = NULL; in php_oci_connection_close()
2344 int php_oci_connection_release(php_oci_connection *connection TSRMLS_DC) in php_oci_connection_release()
2350 if (connection->is_stub) { in php_oci_connection_release()
2354 if (connection->descriptors) { in php_oci_connection_release()
2355 php_oci_connection_descriptors_free(connection TSRMLS_CC); in php_oci_connection_release()
2358 if (connection->svc) { in php_oci_connection_release()
2360 if (connection->needs_commit) { in php_oci_connection_release()
2361 if (php_oci_connection_rollback(connection TSRMLS_CC)) { in php_oci_connection_release()
2369 connection->idle_expiry = timestamp + OCI_G(persistent_timeout); in php_oci_connection_release()
2373 if (connection->next_pingp) { in php_oci_connection_release()
2375 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_connection_release()
2378 *(connection->next_pingp) = 0; in php_oci_connection_release()
2383 if (connection->using_spool) { in php_oci_connection_release()
2395 if (!connection->is_persistent) { in php_oci_connection_release()
2400 if (connection->svc) { in php_oci_connection_release()
2401 PHP_OCI_CALL(OCISessionRelease, (connection->svc, connection->err, NULL, in php_oci_connection_release()
2407 connection->svc = NULL; in php_oci_connection_release()
2408 connection->server = NULL; in php_oci_connection_release()
2409 connection->session = NULL; in php_oci_connection_release()
2411 …connection->is_attached = connection->is_open = connection->needs_commit = connection->used_this_r… in php_oci_connection_release()
2412 connection->is_stub = 1; in php_oci_connection_release()
2417 connection->next_pingp = NULL; in php_oci_connection_release()
2428 int php_oci_password_change(php_oci_connection *connection, char *user, int user_len, char *pass_ol… in php_oci_password_change() argument
2430 …PHP_OCI_CALL_RETURN(connection->errcode, OCIPasswordChange, (connection->svc, connection->err, (te… in php_oci_password_change()
2432 if (connection->errcode != OCI_SUCCESS) { in php_oci_password_change()
2433 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_password_change()
2434 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_password_change()
2437 connection->passwd_changed = 1; in php_oci_password_change()
2469 int php_oci_server_get_version(php_oci_connection *connection, char **version TSRMLS_DC) in php_oci_server_get_version() argument
2473 …PHP_OCI_CALL_RETURN(connection->errcode, OCIServerVersion, (connection->svc, connection->err, (tex… in php_oci_server_get_version()
2475 if (connection->errcode != OCI_SUCCESS) { in php_oci_server_get_version()
2476 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_server_get_version()
2477 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_server_get_version()
2682 php_oci_connection *connection; in php_oci_persistent_helper() local
2688 connection = (php_oci_connection *)le->ptr; in php_oci_persistent_helper()
2690 if (!connection->used_this_request && OCI_G(persistent_timeout) != -1) { in php_oci_persistent_helper()
2692 …tent_helper processing for timeout: (%p stub=%d) at (%s:%d) \n", connection, connection->is_stub, … in php_oci_persistent_helper()
2694 if (connection->idle_expiry < timestamp) { in php_oci_persistent_helper()
2943 static int php_oci_old_create_session(php_oci_connection *connection, char *dbname, int dbname_len,… in php_oci_old_create_session() argument
2952 if (!(connection->env = php_oci_create_env(connection->charset TSRMLS_CC))) { in php_oci_old_create_session()
2957 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->serv… in php_oci_old_create_session()
2965 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIServerAttach, (connection->server, OCI_G(err), (text *)dbna… in php_oci_old_create_session()
2971 connection->is_attached = 1; in php_oci_old_create_session()
2974 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->sess… in php_oci_old_create_session()
2982 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_old_create_session()
2990 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->svc)… in php_oci_old_create_session()
2999 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
3009 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
3020 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
3031 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SE… in php_oci_old_create_session()
3040 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
3048 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, (connection->svc, OCI_HTYPE_SVCCTX, connection->se… in php_oci_old_create_session()
3057 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIPasswordChange, (connection->svc, OCI_G(err), (text *)usern… in php_oci_old_create_session()
3064 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_old_create_session()
3082 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCISessionBegin, (connection->svc, OCI_G(err), connection->ses… in php_oci_old_create_session()
3096 if (php_oci_ping_init(connection, OCI_G(err) TSRMLS_CC) != OCI_SUCCESS) { in php_oci_old_create_session()
3101 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX… in php_oci_old_create_session()
3116 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char… in php_oci_create_session() argument
3126 if (connection->is_persistent && !connection->private_spool && in php_oci_create_session()
3127 …!(connection->private_spool = php_oci_create_spool(username, username_len, password, password_len,… in php_oci_create_session()
3130 actual_spool = (connection->is_persistent) ? (connection->private_spool) : (session_pool); in php_oci_create_session()
3132 connection->env = actual_spool->env; in php_oci_create_session()
3137 if (!connection->using_spool) { in php_oci_create_session()
3138 connection->using_spool = 1; in php_oci_create_session()
3145 …php_printf ("OCI8 DEBUG L1: using private pool: (%p) at (%s:%d) \n", connection->private_spool, __… in php_oci_create_session()
3153 if (!connection->err) { in php_oci_create_session()
3154 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->err)… in php_oci_create_session()
3163 if (!connection->authinfo) { in php_oci_create_session()
3164 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (connection->env, (dvoid **)&(connection->auth… in php_oci_create_session()
3173 …PHP_OCI_CALL_RETURN(OCI_G(errcode),OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_SES… in php_oci_create_session()
3180 if (connection->is_persistent) in php_oci_create_session()
3185 …PHP_OCI_CALL_RETURN(OCI_G(errcode),OCIAttrSet, ((dvoid *) connection->authinfo,(ub4) OCI_HTYPE_AUT… in php_oci_create_session()
3211 …_RETURN(OCI_G(errcode),OCISessionGet, (connection->env, OCI_G(err), &(connection->svc), (OCIAuthIn… in php_oci_create_session()
3226 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_create_session()
3228 …LL_RETURN(OCI_G(errcode), OCIAttrGet, ((dvoid *)connection->svc, OCI_HTYPE_SVCCTX, (dvoid *)&(conn… in php_oci_create_session()
3230 …de), OCIContextGetValue, (connection->session, OCI_G(err), (ub1 *)"NEXT_PING", (ub1)sizeof("NEXT_P… in php_oci_create_session()
3236 if (!(connection->next_pingp)){ in php_oci_create_session()
3238 if (php_oci_ping_init(connection, OCI_G(err) TSRMLS_CC) != OCI_SUCCESS) { in php_oci_create_session()
3242 } else if ((*(connection->next_pingp) > 0) && (timestamp >= *(connection->next_pingp))) { in php_oci_create_session()
3243 if (php_oci_connection_ping(connection TSRMLS_CC)) { in php_oci_create_session()
3245 *(connection->next_pingp) = timestamp + OCI_G(ping_interval); in php_oci_create_session()
3248 …PHP_OCI_CALL(OCISessionRelease, (connection->svc, connection->err, NULL,0, (ub4) OCI_SESSRLS_DROPS… in php_oci_create_session()
3249 connection->svc = NULL; in php_oci_create_session()
3250 connection->server = NULL; in php_oci_create_session()
3251 connection->session = NULL; in php_oci_create_session()
3254 } while (!(connection->svc)); in php_oci_create_session()
3256 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->svc, (ub4) OCI_HTYPE_SVCCTX… in php_oci_create_session()
3264 connection->is_stub = 0; in php_oci_create_session()
3265 connection->is_attached = connection->is_open = 1; in php_oci_create_session()
3321 static sword php_oci_ping_init(php_oci_connection *connection, OCIError *errh TSRMLS_DC) in php_oci_ping_init() argument
3325 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextGetValue, (connection->session, errh, (ub1 *)"NEXT_P… in php_oci_ping_init()
3332 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIMemoryAlloc, (connection->session, errh, (void **)&next_pin… in php_oci_ping_init()
3346 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIContextSetValue, (connection->session, errh, OCI_DURATION_S… in php_oci_ping_init()
3348 OCIMemoryFree(connection->session, errh, next_pingp); in php_oci_ping_init()
3353 connection->next_pingp = next_pingp; in php_oci_ping_init()