Lines Matching refs:session_pool

121 static void php_oci_spool_close(php_oci_spool *session_pool);
124 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char…
804 php_oci_spool *session_pool = NULL; in php_oci_do_connect_ex() local
1126 …if ((session_pool = php_oci_get_spool(username, username_len, password, password_len, dbname, dbna… in php_oci_do_connect_ex()
1158 …if (php_oci_create_session(connection, session_pool, dbname, dbname_len, username, username_len, p… in php_oci_do_connect_ex()
1845 php_oci_spool *session_pool = NULL; in php_oci_create_spool() local
1852 session_pool = (php_oci_spool *) calloc(1, sizeof(php_oci_spool)); in php_oci_create_spool()
1853 if (session_pool == NULL) { in php_oci_create_spool()
1860 session_pool->spool_hash_key = zend_string_dup(hash_key, 1); in php_oci_create_spool()
1861 if (session_pool->spool_hash_key == NULL) { in php_oci_create_spool()
1868 if (!(session_pool->env = php_oci_create_env(charsetid))) { in php_oci_create_spool()
1874 …PHP_OCI_CALL_RETURN(errstatus, OCIHandleAlloc, (session_pool->env, (dvoid **) &session_pool->poolh… in php_oci_create_spool()
1886 …_OCI_CALL_RETURN(errstatus, OCIHandleAlloc, ((dvoid *) session_pool->env, (dvoid **)&(session_pool in php_oci_create_spool()
1898 …PHP_OCI_CALL_RETURN(errstatus, OCIHandleAlloc, (session_pool->env, (dvoid **)&(spoolAuth), OCI_HTY… in php_oci_create_spool()
1930 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrSet, ((dvoid *) (session_pool->poolh),(ub4) OCI_HTYPE_SPOOL,… in php_oci_create_spool()
1942 …s, OCISessionPoolCreate,(session_pool->env, OCI_G(err), session_pool->poolh, (OraText **)&session_… in php_oci_create_spool()
1950 if (iserror && session_pool) { in php_oci_create_spool()
1951 php_oci_spool_close(session_pool); in php_oci_create_spool()
1952 session_pool = NULL; in php_oci_create_spool()
1961 DTRACE_OCI8_SESSPOOL_CREATE(session_pool); in php_oci_create_spool()
1965 return session_pool; in php_oci_create_spool()
1977 php_oci_spool *session_pool = NULL; in php_oci_get_spool() local
2018session_pool = php_oci_create_spool(username, username_len, password, password_len, dbname, dbname… in php_oci_get_spool()
2020 if (session_pool == NULL) { in php_oci_get_spool()
2024 zend_register_persistent_resource_ex(session_pool->spool_hash_key, session_pool, le_psessionpool); in php_oci_get_spool()
2028 session_pool = (php_oci_spool *)(spool_out_le->ptr); in php_oci_get_spool()
2033 if (iserror && session_pool) { in php_oci_get_spool()
2034 php_oci_spool_close(session_pool); in php_oci_get_spool()
2035 session_pool = NULL; in php_oci_get_spool()
2038 return session_pool; in php_oci_get_spool()
2266 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char… in php_oci_create_session() argument
2285 actual_spool = (connection->is_persistent) ? (connection->private_spool) : (session_pool); in php_oci_create_session()
2298 …DTRACE_OCI8_SESSPOOL_TYPE(session_pool ? 1 : 0, session_pool ? session_pool : connection->private_… in php_oci_create_session()
2433 php_oci_spool *session_pool = (php_oci_spool *)entry->ptr; in php_oci_spool_list_dtor() local
2435 if (session_pool) { in php_oci_spool_list_dtor()
2436 php_oci_spool_close(session_pool); in php_oci_spool_list_dtor()
2447 static void php_oci_spool_close(php_oci_spool *session_pool) in php_oci_spool_close() argument
2449 if (session_pool->poolname_len) { in php_oci_spool_close()
2450 PHP_OCI_CALL(OCISessionPoolDestroy, ((dvoid *) session_pool->poolh, in php_oci_spool_close()
2451 (dvoid *) session_pool->err, OCI_SPD_FORCE)); in php_oci_spool_close()
2454 if (session_pool->poolh) { in php_oci_spool_close()
2455 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->poolh, OCI_HTYPE_SPOOL)); in php_oci_spool_close()
2458 if (session_pool->err) { in php_oci_spool_close()
2459 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->err, OCI_HTYPE_ERROR)); in php_oci_spool_close()
2462 if (session_pool->env) { in php_oci_spool_close()
2463 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->env, OCI_HTYPE_ENV)); in php_oci_spool_close()
2466 if (session_pool->spool_hash_key) { in php_oci_spool_close()
2467 free(session_pool->spool_hash_key); in php_oci_spool_close()
2470 free(session_pool); in php_oci_spool_close()