Lines Matching refs:ODBCG
144 ODBCG(num_links)--; in free_connection()
146 ODBCG(num_persistent)--; in free_connection()
163 zend_hash_del(&ODBCG(connections), link->hash); in odbc_link_free()
548 ODBCG(defConn) = -1; in PHP_RINIT_FUNCTION()
549 ODBCG(num_links) = ODBCG(num_persistent); in PHP_RINIT_FUNCTION()
550 memset(ODBCG(laststate), '\0', 6); in PHP_RINIT_FUNCTION()
551 memset(ODBCG(lasterrormsg), '\0', SQL_MAX_MESSAGE_LENGTH); in PHP_RINIT_FUNCTION()
578 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_persistent)); in PHP_MINFO_FUNCTION()
580 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); in PHP_MINFO_FUNCTION()
621 …= SQLError(henv, conn, stmt, (SQLCHAR *) ODBCG(laststate), &error, (SQLCHAR *) ODBCG(lasterrormsg)… in odbc_sql_error()
623 snprintf(ODBCG(laststate), sizeof(ODBCG(laststate)), "HY000"); in odbc_sql_error()
624 snprintf(ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg)), "Failed to fetch error message"); in odbc_sql_error()
627 memcpy(conn_resource->laststate, ODBCG(laststate), sizeof(ODBCG(laststate))); in odbc_sql_error()
628 memcpy(conn_resource->lasterrormsg, ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg))); in odbc_sql_error()
631 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s in %s", ODBCG(lasterrormsg), ODBCG(… in odbc_sql_error()
633 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s", ODBCG(lasterrormsg), ODBCG(lastst… in odbc_sql_error()
678 result->longreadlen = ODBCG(defaultlrl); in odbc_bindcols()
679 result->binmode = ODBCG(defaultbinmode); in odbc_bindcols()
867 ZEND_HASH_FOREACH_VAL(&ODBCG(connections), zv) { in PHP_FUNCTION()
874 zend_hash_clean(&ODBCG(connections)); in PHP_FUNCTION()
942 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
1330 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
2308 if (!ODBCG(allow_persistent)) {
2322 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) {
2323 php_error_docref(NULL, E_WARNING, "Too many open links (" ZEND_LONG_FMT ")", ODBCG(num_links));
2327 if (ODBCG(max_persistent) != -1 && ODBCG(num_persistent) >= ODBCG(max_persistent)) {
2328 …php_error_docref(NULL, E_WARNING,"Too many open persistent links (" ZEND_LONG_FMT ")", ODBCG(num_p…
2347 zend_hash_str_add_new(&ODBCG(connections), hashed_details, hashed_details_len, return_value);
2349 ODBCG(num_persistent)++;
2350 ODBCG(num_links)++;
2362 if(ODBCG(check_persistent)){
2398 …if ((link_zval = zend_hash_str_find(&ODBCG(connections), hashed_details, hashed_details_len)) == N…
2412 …if ((link_zval = zend_hash_str_find(&ODBCG(connections), hashed_details, hashed_details_len)) == N…
2413 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) {
2414 …php_error_docref(NULL, E_WARNING, "Too many open connections (" ZEND_LONG_FMT ")", ODBCG(num_links…
2424 ODBCG(num_links)++;
2426 zend_hash_str_add_new(&ODBCG(connections), hashed_details, hashed_details_len, return_value);
2731 ret = ODBCG(laststate);
2733 ret = ODBCG(lasterrormsg);