Lines Matching refs:session_pool
144 static void php_oci_spool_close(php_oci_spool *session_pool TSRMLS_DC);
147 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char…
1766 php_oci_spool *session_pool = NULL; in php_oci_do_connect_ex() local
2082 …if ((session_pool = php_oci_get_spool(username, username_len, password, password_len, dbname, dbna… 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()
2709 php_oci_spool *session_pool = NULL; in php_oci_create_spool() local
2715 session_pool = (php_oci_spool *) calloc(1, sizeof(php_oci_spool)); in php_oci_create_spool()
2716 if (session_pool == NULL) { in php_oci_create_spool()
2723 session_pool->spool_hash_key = zend_strndup(hash_key, hash_key_len); in php_oci_create_spool()
2724 if (session_pool->spool_hash_key == NULL) { in php_oci_create_spool()
2731 if (!(session_pool->env = php_oci_create_env(charsetid TSRMLS_CC))) { in php_oci_create_spool()
2737 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (session_pool->env, (dvoid **) &session_pool->… in php_oci_create_spool()
2749 …CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, ((dvoid *) session_pool->env, (dvoid **)&(session_pool… in php_oci_create_spool()
2766 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIHandleAlloc, (session_pool->env, (dvoid **)&(spoolAuth), OC… in php_oci_create_spool()
2795 …PHP_OCI_CALL_RETURN(OCI_G(errcode),OCIAttrSet, ((dvoid *) (session_pool->poolh),(ub4) OCI_HTYPE_SP… in php_oci_create_spool()
2807 …), OCISessionPoolCreate,(session_pool->env, OCI_G(err), session_pool->poolh, (OraText **)&session_… in php_oci_create_spool()
2815 if (iserror && session_pool) { in php_oci_create_spool()
2816 php_oci_spool_close(session_pool TSRMLS_CC); in php_oci_create_spool()
2817 session_pool = NULL; in php_oci_create_spool()
2825 php_printf ("OCI8 DEBUG L1: create_spool: (%p) at (%s:%d) \n", session_pool, __FILE__, __LINE__); in php_oci_create_spool()
2828 return session_pool; in php_oci_create_spool()
2839 php_oci_spool *session_pool = NULL; in php_oci_get_spool() local
2875 …session_pool = php_oci_create_spool(username, username_len, password, password_len, dbname, dbname… in php_oci_get_spool()
2877 if (session_pool == NULL) { in php_oci_get_spool()
2881 spool_le.ptr = session_pool; in php_oci_get_spool()
2884 zend_list_insert(session_pool, le_psessionpool TSRMLS_CC); in php_oci_get_spool()
2886 zend_list_insert(session_pool, le_psessionpool); in php_oci_get_spool()
2888 …zend_hash_update(&EG(persistent_list), session_pool->spool_hash_key, strlen(session_pool->spool_ha… in php_oci_get_spool()
2893 session_pool = (php_oci_spool *)(spool_out_le->ptr); in php_oci_get_spool()
2898 if (iserror && session_pool) { in php_oci_get_spool()
2899 php_oci_spool_close(session_pool TSRMLS_CC); in php_oci_get_spool()
2900 session_pool = NULL; in php_oci_get_spool()
2903 return session_pool; in php_oci_get_spool()
3116 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char… in php_oci_create_session() argument
3130 actual_spool = (connection->is_persistent) ? (connection->private_spool) : (session_pool); in php_oci_create_session()
3142 if (session_pool) { in php_oci_create_session()
3143 …php_printf ("OCI8 DEBUG L1: using shared pool: (%p) at (%s:%d) \n", session_pool, __FILE__, __LINE… in php_oci_create_session()
3276 php_oci_spool *session_pool = (php_oci_spool *)entry->ptr; in php_oci_spool_list_dtor() local
3278 if (session_pool) { in php_oci_spool_list_dtor()
3279 php_oci_spool_close(session_pool TSRMLS_CC); in php_oci_spool_list_dtor()
3289 static void php_oci_spool_close(php_oci_spool *session_pool TSRMLS_DC) in php_oci_spool_close()
3291 if (session_pool->poolname_len) { in php_oci_spool_close()
3292 PHP_OCI_CALL(OCISessionPoolDestroy, ((dvoid *) session_pool->poolh, in php_oci_spool_close()
3293 (dvoid *) session_pool->err, OCI_SPD_FORCE)); in php_oci_spool_close()
3296 if (session_pool->poolh) { in php_oci_spool_close()
3297 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->poolh, OCI_HTYPE_SPOOL)); in php_oci_spool_close()
3300 if (session_pool->err) { in php_oci_spool_close()
3301 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->err, OCI_HTYPE_ERROR)); in php_oci_spool_close()
3304 if (session_pool->env) { in php_oci_spool_close()
3305 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->env, OCI_HTYPE_ENV)); in php_oci_spool_close()
3308 if (session_pool->spool_hash_key) { in php_oci_spool_close()
3309 free(session_pool->spool_hash_key); in php_oci_spool_close()
3312 free(session_pool); in php_oci_spool_close()