Lines Matching refs:PGG
92 #define FETCH_DEFAULT_LINK() PGG(default_link)
925 if (PGG(default_link) != NULL) { in php_pgsql_set_default_link()
926 zend_list_delete(PGG(default_link)); in php_pgsql_set_default_link()
929 PGG(default_link) = res; in php_pgsql_set_default_link()
945 PGG(num_links)--; in _close_pgsql_link()
948 hash = zend_hash_index_find(&PGG(hashes), (uintptr_t) link); in _close_pgsql_link()
950 zend_hash_index_del(&PGG(hashes), (uintptr_t) link); in _close_pgsql_link()
967 PGG(num_persistent)--; in _close_pgsql_plink()
968 PGG(num_links)--; in _close_pgsql_plink()
981 if (! PGG(ignore_notices)) { in _php_pgsql_notice_handler()
982 notices = zend_hash_index_find(&PGG(notices), (zend_ulong)resource_id); in _php_pgsql_notice_handler()
986 zend_hash_index_update(&PGG(notices), (zend_ulong)resource_id, notices); in _php_pgsql_notice_handler()
989 if (PGG(log_notices)) { in _php_pgsql_notice_handler()
1023 int orig = PGG(ignore_notices); in _rollback_transactions()
1024 PGG(ignore_notices) = 1; in _rollback_transactions()
1033 PGG(ignore_notices) = orig; in _rollback_transactions()
1240 zend_hash_destroy(&PGG(notices)); in PHP_MSHUTDOWN_FUNCTION()
1241 zend_hash_destroy(&PGG(hashes)); in PHP_MSHUTDOWN_FUNCTION()
1251 PGG(default_link) = NULL; in PHP_RINIT_FUNCTION()
1252 PGG(num_links) = PGG(num_persistent); in PHP_RINIT_FUNCTION()
1262 zend_hash_clean(&PGG(notices)); in PHP_RSHUTDOWN_FUNCTION()
1263 zend_hash_clean(&PGG(hashes)); in PHP_RSHUTDOWN_FUNCTION()
1292 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_persistent)); in PHP_MINFO_FUNCTION()
1294 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_links)); in PHP_MINFO_FUNCTION()
1361 if (persistent && PGG(allow_persistent)) {
1366 if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) {
1368 "Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links));
1371 if (PGG(max_persistent) != -1 && PGG(num_persistent) >= PGG(max_persistent)) {
1373 …"Cannot create new link. Too many open persistent links (" ZEND_LONG_FMT ")", PGG(num_persistent));
1395 PGG(num_links)++;
1396 PGG(num_persistent)++;
1402 if (PGG(auto_reset_persistent) & 1) {
1460 if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) {
1461 …ULL, E_WARNING, "Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links));
1510 zend_hash_index_update(&PGG(hashes), (uintptr_t) pgsql, &tmp);
1512 PGG(num_links)++;
1515 if (! PGG(ignore_notices) && Z_TYPE_P(return_value) == IS_RESOURCE) {
1588 link = PGG(default_link);
1591 PGG(default_link) = NULL;
1600 if (link == PGG(default_link)) {
1602 PGG(default_link) = NULL;
1877 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2009 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2096 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2206 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2335 notices = zend_hash_index_find(&PGG(notices), (zend_ulong)Z_RES_HANDLE_P(pgsql_link));
2358 zend_hash_clean(&PGG(notices));
4929 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5022 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5095 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5199 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
6762 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pg_link) != CONNECTION_OK) {