Lines Matching refs:PGG

86 		(PGG(default_link) ? pgsql_link_from_obj(PGG(default_link)) : NULL); \
91 (PGG(default_link) ? pgsql_link_from_obj(PGG(default_link)) : NULL)
181 PGG(num_links)--; in pgsql_link_free()
183 zend_hash_del(&PGG(connections), link->hash); in pgsql_link_free()
301 if (PGG(default_link) != NULL) { in php_pgsql_set_default_link()
302 zend_object_release(PGG(default_link)); in php_pgsql_set_default_link()
305 PGG(default_link) = obj; in php_pgsql_set_default_link()
322 PGG(num_persistent)--; in _close_pgsql_plink()
323 PGG(num_links)--; in _close_pgsql_plink()
330 if (PGG(ignore_notices)) { in _php_pgsql_notice_handler()
342 if (PGG(log_notices)) { in _php_pgsql_notice_handler()
371 int orig = PGG(ignore_notices); in _rollback_transactions()
372 PGG(ignore_notices) = 1; in _rollback_transactions()
375 PGG(ignore_notices) = orig; in _rollback_transactions()
489 zend_hash_destroy(&PGG(connections)); in PHP_MSHUTDOWN_FUNCTION()
496 PGG(default_link) = NULL; in PHP_RINIT_FUNCTION()
497 PGG(num_links) = PGG(num_persistent); in PHP_RINIT_FUNCTION()
498 zend_hash_init(&PGG(field_oids), 0, NULL, release_string, 0); in PHP_RINIT_FUNCTION()
499 zend_hash_init(&PGG(table_oids), 0, NULL, release_string, 0); in PHP_RINIT_FUNCTION()
505 if (PGG(default_link)) { in PHP_RSHUTDOWN_FUNCTION()
506 zend_object_release(PGG(default_link)); in PHP_RSHUTDOWN_FUNCTION()
507 PGG(default_link) = NULL; in PHP_RSHUTDOWN_FUNCTION()
510 zend_hash_destroy(&PGG(field_oids)); in PHP_RSHUTDOWN_FUNCTION()
511 zend_hash_destroy(&PGG(table_oids)); in PHP_RSHUTDOWN_FUNCTION()
529 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_persistent)); in PHP_MINFO_FUNCTION()
531 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_links)); in PHP_MINFO_FUNCTION()
560 if (persistent && PGG(allow_persistent)) { in php_pgsql_do_connect()
565 if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) { in php_pgsql_do_connect()
567 "Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links)); in php_pgsql_do_connect()
570 if (PGG(max_persistent) != -1 && PGG(num_persistent) >= PGG(max_persistent)) { in php_pgsql_do_connect()
572 …"Cannot create new link. Too many open persistent links (" ZEND_LONG_FMT ")", PGG(num_persistent)); in php_pgsql_do_connect()
590 PGG(num_links)++; in php_pgsql_do_connect()
591 PGG(num_persistent)++; in php_pgsql_do_connect()
597 if (PGG(auto_reset_persistent) & 1) { in php_pgsql_do_connect()
640 && (index_ptr = zend_hash_find(&PGG(connections), str.s)) != NULL) { in php_pgsql_do_connect()
646 if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) { in php_pgsql_do_connect()
647 …ULL, E_WARNING, "Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links)); in php_pgsql_do_connect()
680 zend_hash_update(&PGG(connections), str.s, return_value); in php_pgsql_do_connect()
687 PGG(num_links)++; in php_pgsql_do_connect()
690 if (! PGG(ignore_notices) && Z_TYPE_P(return_value) == IS_OBJECT) { in php_pgsql_do_connect()
754 zend_object_release(PGG(default_link)); in PHP_FUNCTION()
755 PGG(default_link) = NULL; in PHP_FUNCTION()
763 GC_DELREF(PGG(default_link)); in PHP_FUNCTION()
764 PGG(default_link) = NULL; in PHP_FUNCTION()
1005 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
1123 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
1204 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
1308 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
1458 zend_string *ret = zend_hash_index_find_ptr(&PGG(field_oids), oid); in get_field_name()
1490 zend_hash_index_update_ptr(&PGG(field_oids), tmp_oid, name); in get_field_name()
1534 zend_string *field_table = zend_hash_index_find_ptr(&PGG(table_oids), oid); in PHP_FUNCTION()
1561 zend_hash_index_update_ptr(&PGG(table_oids), oid, field_table); in PHP_FUNCTION()
3585 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
3677 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
3748 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
3846 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) { in PHP_FUNCTION()
5366 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pg_link) != CONNECTION_OK) { in PHP_FUNCTION()