Lines Matching refs:PGG
94 #define FETCH_DEFAULT_LINK() PGG(default_link)
928 if (PGG(default_link) != NULL) { in php_pgsql_set_default_link()
929 zend_list_delete(PGG(default_link)); in php_pgsql_set_default_link()
932 PGG(default_link) = res; in php_pgsql_set_default_link()
947 PGG(num_links)--; in _close_pgsql_link()
962 PGG(num_persistent)--; in _close_pgsql_plink()
963 PGG(num_links)--; in _close_pgsql_plink()
976 if (! PGG(ignore_notices)) { in _php_pgsql_notice_handler()
977 notices = zend_hash_index_find(&PGG(notices), (zend_ulong)resource_id); in _php_pgsql_notice_handler()
981 zend_hash_index_update(&PGG(notices), (zend_ulong)resource_id, notices); in _php_pgsql_notice_handler()
984 if (PGG(log_notices)) { in _php_pgsql_notice_handler()
1019 orig = PGG(ignore_notices); in _rollback_transactions()
1020 PGG(ignore_notices) = 1; in _rollback_transactions()
1029 PGG(ignore_notices) = orig; in _rollback_transactions()
1217 zend_hash_destroy(&PGG(notices)); in PHP_MSHUTDOWN_FUNCTION()
1227 PGG(default_link) = NULL; in PHP_RINIT_FUNCTION()
1228 PGG(num_links) = PGG(num_persistent); in PHP_RINIT_FUNCTION()
1238 zend_hash_clean(&PGG(notices)); in PHP_RSHUTDOWN_FUNCTION()
1267 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_persistent)); in PHP_MINFO_FUNCTION()
1269 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_links)); in PHP_MINFO_FUNCTION()
1337 if (persistent && PGG(allow_persistent)) {
1344 if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) {
1346 "Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links));
1349 if (PGG(max_persistent) != -1 && PGG(num_persistent) >= PGG(max_persistent)) {
1351 …"Cannot create new link. Too many open persistent links (" ZEND_LONG_FMT ")", PGG(num_persistent));
1375 PGG(num_links)++;
1376 PGG(num_persistent)++;
1382 if (PGG(auto_reset_persistent) & 1) {
1443 if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) {
1444 …ULL, E_WARNING, "Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links));
1487 PGG(num_links)++;
1490 if (! PGG(ignore_notices) && Z_TYPE_P(return_value) == IS_RESOURCE) {
1518 if (PGG(default_link)==-1) { /* no link opened yet, implicitly open one */
1522 return PGG(default_link);
1587 if (link == PGG(default_link)) {
1589 PGG(default_link) = NULL;
1865 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
1997 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2084 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2201 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2330 notices = zend_hash_index_find(&PGG(notices), (zend_ulong)Z_RES_HANDLE_P(pgsql_link));
2353 zend_hash_clean(&PGG(notices));
4926 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5025 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5098 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5202 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
6740 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pg_link) != CONNECTION_OK) {