Lines Matching refs:session_pool

111 static void php_oci_spool_close(php_oci_spool *session_pool);
114 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char…
1683 php_oci_spool *session_pool = NULL; in php_oci_do_connect_ex() local
2007 …if ((session_pool = php_oci_get_spool(username, username_len, password, password_len, dbname, dbna… in php_oci_do_connect_ex()
2039 …if (php_oci_create_session(connection, session_pool, dbname, dbname_len, username, username_len, p… in php_oci_do_connect_ex()
2757 php_oci_spool *session_pool = NULL; in php_oci_create_spool() local
2764 session_pool = (php_oci_spool *) calloc(1, sizeof(php_oci_spool)); in php_oci_create_spool()
2765 if (session_pool == NULL) { in php_oci_create_spool()
2772 session_pool->spool_hash_key = zend_string_dup(hash_key, 1); in php_oci_create_spool()
2773 if (session_pool->spool_hash_key == NULL) { in php_oci_create_spool()
2780 if (!(session_pool->env = php_oci_create_env(charsetid))) { in php_oci_create_spool()
2786 …PHP_OCI_CALL_RETURN(errstatus, OCIHandleAlloc, (session_pool->env, (dvoid **) &session_pool->poolh… in php_oci_create_spool()
2798 …_OCI_CALL_RETURN(errstatus, OCIHandleAlloc, ((dvoid *) session_pool->env, (dvoid **)&(session_pool in php_oci_create_spool()
2815 …PHP_OCI_CALL_RETURN(errstatus, OCIHandleAlloc, (session_pool->env, (dvoid **)&(spoolAuth), OCI_HTY… in php_oci_create_spool()
2847 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrSet, ((dvoid *) (session_pool->poolh),(ub4) OCI_HTYPE_SPOOL,… in php_oci_create_spool()
2860 …s, OCISessionPoolCreate,(session_pool->env, OCI_G(err), session_pool->poolh, (OraText **)&session_… in php_oci_create_spool()
2868 if (iserror && session_pool) { in php_oci_create_spool()
2869 php_oci_spool_close(session_pool); in php_oci_create_spool()
2870 session_pool = NULL; in php_oci_create_spool()
2879 DTRACE_OCI8_SESSPOOL_CREATE(session_pool); in php_oci_create_spool()
2883 return session_pool; in php_oci_create_spool()
2895 php_oci_spool *session_pool = NULL; in php_oci_get_spool() local
2939session_pool = php_oci_create_spool(username, username_len, password, password_len, dbname, dbname… in php_oci_get_spool()
2941 if (session_pool == NULL) { in php_oci_get_spool()
2946 spool_le.ptr = session_pool; in php_oci_get_spool()
2948 PHP_OCI_REGISTER_RESOURCE(session_pool, le_psessionpool); in php_oci_get_spool()
2949 …zend_hash_update_mem(&EG(persistent_list), session_pool->spool_hash_key, (void *)&spool_le, sizeof… in php_oci_get_spool()
2951 zend_register_persistent_resource_ex(session_pool->spool_hash_key, session_pool, le_psessionpool); in php_oci_get_spool()
2957 session_pool = (php_oci_spool *)(spool_out_le->ptr); in php_oci_get_spool()
2962 if (iserror && session_pool) { in php_oci_get_spool()
2963 php_oci_spool_close(session_pool); in php_oci_get_spool()
2964 session_pool = NULL; in php_oci_get_spool()
2967 return session_pool; in php_oci_get_spool()
3199 static int php_oci_create_session(php_oci_connection *connection, php_oci_spool *session_pool, char… in php_oci_create_session() argument
3220 actual_spool = (connection->is_persistent) ? (connection->private_spool) : (session_pool); in php_oci_create_session()
3233 …DTRACE_OCI8_SESSPOOL_TYPE(session_pool ? 1 : 0, session_pool ? session_pool : connection->private_… in php_oci_create_session()
3370 php_oci_spool *session_pool = (php_oci_spool *)entry->ptr; in php_oci_spool_list_dtor() local
3372 if (session_pool) { in php_oci_spool_list_dtor()
3373 php_oci_spool_close(session_pool); in php_oci_spool_list_dtor()
3384 static void php_oci_spool_close(php_oci_spool *session_pool) in php_oci_spool_close() argument
3386 if (session_pool->poolname_len) { in php_oci_spool_close()
3387 PHP_OCI_CALL(OCISessionPoolDestroy, ((dvoid *) session_pool->poolh, in php_oci_spool_close()
3388 (dvoid *) session_pool->err, OCI_SPD_FORCE)); in php_oci_spool_close()
3391 if (session_pool->poolh) { in php_oci_spool_close()
3392 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->poolh, OCI_HTYPE_SPOOL)); in php_oci_spool_close()
3395 if (session_pool->err) { in php_oci_spool_close()
3396 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->err, OCI_HTYPE_ERROR)); in php_oci_spool_close()
3399 if (session_pool->env) { in php_oci_spool_close()
3400 PHP_OCI_CALL(OCIHandleFree, ((dvoid *) session_pool->env, OCI_HTYPE_ENV)); in php_oci_spool_close()
3403 if (session_pool->spool_hash_key) { in php_oci_spool_close()
3404 free(session_pool->spool_hash_key); in php_oci_spool_close()
3407 free(session_pool); in php_oci_spool_close()