Lines Matching refs:SybCtG
355 SybCtG(num_links)--; in _close_sybase_link()
381 SybCtG(num_persistent)--; in _close_sybase_plink()
382 SybCtG(num_links)--; in _close_sybase_plink()
390 if (CS_SEVERITY(errmsg->msgnumber) >= SybCtG(min_client_severity)) { in _client_message_handler()
393 STR_FREE(SybCtG(server_message)); in _client_message_handler()
394 SybCtG(server_message) = estrdup(errmsg->msgstring); in _client_message_handler()
473 STR_FREE(SybCtG(server_message)); in _server_message_handler()
474 SybCtG(server_message) = estrdup(srvmsg->text); in _server_message_handler()
490 if (srvmsg->severity < SybCtG(min_server_severity)) { in _server_message_handler()
495 handled = handled | _call_message_handler(SybCtG(callback_name), srvmsg TSRMLS_CC); in _server_message_handler()
595 SybCtG(default_link)=-1; in PHP_RINIT_FUNCTION()
596 SybCtG(num_links) = SybCtG(num_persistent); in PHP_RINIT_FUNCTION()
597 SybCtG(appname) = estrndup("PHP " PHP_VERSION, sizeof("PHP " PHP_VERSION)); in PHP_RINIT_FUNCTION()
598 SybCtG(server_message) = STR_EMPTY_ALLOC(); in PHP_RINIT_FUNCTION()
617 efree(SybCtG(appname)); in PHP_RSHUTDOWN_FUNCTION()
618 SybCtG(appname) = NULL; in PHP_RSHUTDOWN_FUNCTION()
619 if (SybCtG(callback_name)) { in PHP_RSHUTDOWN_FUNCTION()
620 zval_ptr_dtor(&SybCtG(callback_name)); in PHP_RSHUTDOWN_FUNCTION()
621 SybCtG(callback_name)= NULL; in PHP_RSHUTDOWN_FUNCTION()
623 STR_FREE(SybCtG(server_message)); in PHP_RSHUTDOWN_FUNCTION()
624 SybCtG(server_message) = NULL; in PHP_RSHUTDOWN_FUNCTION()
635 if (ct_con_alloc(SybCtG(context), &sybase->connection)!=CS_SUCCEED) { in php_sybase_do_connect_internal()
656 ct_con_props(sybase->connection, CS_SET, CS_APPNAME, SybCtG(appname), CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
659 if (SybCtG(hostname)) { in php_sybase_do_connect_internal()
660 ct_con_props(sybase->connection, CS_SET, CS_HOSTNAME, SybCtG(hostname), CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
664 if (cs_loc_alloc(SybCtG(context), &tmp_locale)!=CS_SUCCEED) { in php_sybase_do_connect_internal()
667 …if (cs_locale(SybCtG(context), CS_SET, tmp_locale, CS_LC_ALL, NULL, CS_NULLTERM, NULL)!=CS_SUCCEED… in php_sybase_do_connect_internal()
670 …if (cs_locale(SybCtG(context), CS_SET, tmp_locale, CS_SYB_CHARSET, charset, CS_NULLTERM, NULL)!=CS… in php_sybase_do_connect_internal()
699 if (SybCtG(login_timeout) != -1) { in php_sybase_do_connect_internal()
700 CS_INT cs_login_timeout = SybCtG(login_timeout); in php_sybase_do_connect_internal()
701 …if (ct_config(SybCtG(context), CS_SET, CS_LOGIN_TIMEOUT, &cs_login_timeout, CS_UNUSED, NULL)!=CS_S… in php_sybase_do_connect_internal()
758 if (!SybCtG(allow_persistent)) { in php_sybase_do_connect()
768 if (SybCtG(max_links)!=-1 && SybCtG(num_links)>=SybCtG(max_links)) { in php_sybase_do_connect()
769 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Too many open links (%ld)", SybCtG(num_links… in php_sybase_do_connect()
773 if (SybCtG(max_persistent)!=-1 && SybCtG(num_persistent)>=SybCtG(max_persistent)) { in php_sybase_do_connect()
774 …ULL TSRMLS_CC, E_WARNING, "Sybase: Too many open persistent links (%ld)", SybCtG(num_persistent)); in php_sybase_do_connect()
800 SybCtG(num_persistent)++; in php_sybase_do_connect()
801 SybCtG(num_links)++; in php_sybase_do_connect()
867 Z_LVAL_P(return_value) = SybCtG(default_link) = link; in php_sybase_do_connect()
875 if (SybCtG(max_links)!=-1 && SybCtG(num_links)>=SybCtG(max_links)) { in php_sybase_do_connect()
876 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Too many open links (%ld)", SybCtG(num_links… in php_sybase_do_connect()
901 SybCtG(num_links)++; in php_sybase_do_connect()
904 SybCtG(default_link)=Z_LVAL_P(return_value); in php_sybase_do_connect()
905 zend_list_addref(SybCtG(default_link)); in php_sybase_do_connect()
911 if (SybCtG(default_link)==-1) { /* no link opened yet, implicitly open one */ in php_sybase_get_default_link()
915 return SybCtG(default_link); in php_sybase_get_default_link()
940 if (-1 == SybCtG(default_link)) { in php_sybase_connection_id()
943 *id = SybCtG(default_link); in php_sybase_connection_id()
972 if (id != -1 || (sybase_link_index && Z_RESVAL_P(sybase_link_index) == SybCtG(default_link))) { in PHP_FUNCTION()
973 zend_list_delete(SybCtG(default_link)); in PHP_FUNCTION()
974 SybCtG(default_link) = -1; in PHP_FUNCTION()
1632 …if (sybase_ptr->deadlock && SybCtG(deadlock_retry_count) != -1 && ++deadlock_count > SybCtG(deadlo… in php_sybase_query()
1633 …e: Retried deadlock %d times [max: %ld], giving up", deadlock_count- 1, SybCtG(deadlock_retry_cou… in php_sybase_query()
1714 RETURN_STRING(SybCtG(server_message), 1); in PHP_FUNCTION()
2125 snprintf(buf, sizeof(buf), "%ld", SybCtG(num_persistent)); in PHP_MINFO_FUNCTION()
2127 snprintf(buf, sizeof(buf), "%ld", SybCtG(num_links)); in PHP_MINFO_FUNCTION()
2129 snprintf(buf, sizeof(buf), "%ld", SybCtG(min_server_severity)); in PHP_MINFO_FUNCTION()
2131 snprintf(buf, sizeof(buf), "%ld", SybCtG(min_client_severity)); in PHP_MINFO_FUNCTION()
2133 php_info_print_table_row(2, "Application Name", SybCtG(appname)); in PHP_MINFO_FUNCTION()
2134 snprintf(buf, sizeof(buf), "%ld", SybCtG(deadlock_retry_count)); in PHP_MINFO_FUNCTION()
2152 SybCtG(min_client_severity) = severity; in PHP_FUNCTION()
2167 SybCtG(min_server_severity) = severity; in PHP_FUNCTION()
2181 SybCtG(deadlock_retry_count) = retry_count; in PHP_FUNCTION()
2205 callback= &SybCtG(callback_name); in PHP_FUNCTION()
2214 callback= &SybCtG(callback_name); in PHP_FUNCTION()