Lines Matching refs:IBG

484 	if (IBG(sql_code) != 0) {  in PHP_FUNCTION()
485 RETURN_STRING(IBG(errmsg)); in PHP_FUNCTION()
500 if (IBG(sql_code) != 0) { in PHP_FUNCTION()
501 RETURN_LONG(IBG(sql_code)); in PHP_FUNCTION()
510 char *s = IBG(errmsg); in _php_ibase_error()
513 IBG(sql_code) = isc_sqlcode(IB_STATUS); in _php_ibase_error()
515 …while ((s - IBG(errmsg)) < MAX_ERRMSG && fb_interpret(s, MAX_ERRMSG - strlen(IBG(errmsg)) - 1, &st… in _php_ibase_error()
516 strcat(IBG(errmsg), " "); in _php_ibase_error()
517 s = IBG(errmsg) + strlen(IBG(errmsg)); in _php_ibase_error()
520 php_error_docref(NULL, E_WARNING, "%s", IBG(errmsg)); in _php_ibase_error()
532 vsnprintf(IBG(errmsg), MAX_ERRMSG, msg, ap); in _php_ibase_module_error()
535 IBG(sql_code) = -999; /* no SQL error */ in _php_ibase_module_error()
537 php_error_docref(NULL, E_WARNING, "%s", IBG(errmsg)); in _php_ibase_module_error()
642 IBG(num_links)--; in _php_ibase_close_link()
656 IBG(num_persistent)--; in _php_ibase_close_plink()
657 IBG(num_links)--; in _php_ibase_close_plink()
792 IBG(num_links) = IBG(num_persistent); in PHP_RSHUTDOWN_FUNCTION()
793 IBG(default_link)= NULL; in PHP_RSHUTDOWN_FUNCTION()
942 if (IBG(default_link) != xlink) { in _php_ibase_connect()
944 if (IBG(default_link)) { in _php_ibase_connect()
945 zend_list_delete(IBG(default_link)); in _php_ibase_connect()
947 IBG(default_link) = xlink; in _php_ibase_connect()
978 if ((l = INI_INT("ibase.max_links")) != -1 && IBG(num_links) >= l) { in _php_ibase_connect()
979 _php_ibase_module_error("Too many open links (%ld)", IBG(num_links)); in _php_ibase_connect()
989 if (!persistent || ((l = INI_INT("ibase.max_persistent") != -1) && IBG(num_persistent) >= l)) { in _php_ibase_connect()
1004 ++IBG(num_persistent); in _php_ibase_connect()
1011 ++IBG(num_links); in _php_ibase_connect()
1019 if (IBG(default_link)) { in _php_ibase_connect()
1020 zend_list_delete(IBG(default_link)); in _php_ibase_connect()
1022 IBG(default_link) = Z_RES_P(return_value); in _php_ibase_connect()
1058 link_res = IBG(default_link); in PHP_FUNCTION()
1060 IBG(default_link) = NULL; in PHP_FUNCTION()
1091 link_res = IBG(default_link); in PHP_FUNCTION()
1093 IBG(default_link) = NULL; in PHP_FUNCTION()
1228 …if ((ib_link[0] = (ibase_db_link *)zend_fetch_resource2(IBG(default_link), LE_LINK, le_link, le_pl… in PHP_FUNCTION()
1322 ib_link = (ibase_db_link *)zend_fetch_resource2(IBG(default_link), LE_LINK, le_link, le_plink); in _php_ibase_trans_end()