Lines Matching refs:PGG

918 	if (PGG(default_link) != -1) {  in php_pgsql_set_default_link()
919 zend_list_delete(PGG(default_link)); in php_pgsql_set_default_link()
922 PGG(default_link) = id; in php_pgsql_set_default_link()
937 PGG(num_links)--; in _close_pgsql_link()
952 PGG(num_persistent)--; in _close_pgsql_plink()
953 PGG(num_links)--; in _close_pgsql_plink()
964 if (! PGG(ignore_notices)) { in _php_pgsql_notice_handler()
967 if (PGG(log_notices)) { in _php_pgsql_notice_handler()
970 …zend_hash_index_update(&PGG(notices), (ulong)resource_id, (void **)&notice, sizeof(php_pgsql_notic… in _php_pgsql_notice_handler()
1015 orig = PGG(ignore_notices); in _rollback_transactions()
1016 PGG(ignore_notices) = 1; in _rollback_transactions()
1025 PGG(ignore_notices) = orig; in _rollback_transactions()
1208 zend_hash_destroy(&PGG(notices)); in PHP_MSHUTDOWN_FUNCTION()
1218 PGG(default_link)=-1; in PHP_RINIT_FUNCTION()
1219 PGG(num_links) = PGG(num_persistent); in PHP_RINIT_FUNCTION()
1229 zend_hash_clean(&PGG(notices)); in PHP_RSHUTDOWN_FUNCTION()
1258 snprintf(buf, sizeof(buf), "%ld", PGG(num_persistent)); in PHP_MINFO_FUNCTION()
1260 snprintf(buf, sizeof(buf), "%ld", PGG(num_links)); in PHP_MINFO_FUNCTION()
1326 if (persistent && PGG(allow_persistent)) {
1333 if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
1335 "Cannot create new link. Too many open links (%ld)", PGG(num_links));
1338 if (PGG(max_persistent)!=-1 && PGG(num_persistent)>=PGG(max_persistent)) {
1340 "Cannot create new link. Too many open persistent links (%ld)", PGG(num_persistent));
1364 PGG(num_links)++;
1365 PGG(num_persistent)++;
1371 if (PGG(auto_reset_persistent) & 1) {
1435 if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
1436 …ef(NULL TSRMLS_CC, E_WARNING, "Cannot create new link. Too many open links (%ld)", PGG(num_links));
1479 PGG(num_links)++;
1482 if (! PGG(ignore_notices) && Z_TYPE_P(return_value) == IS_RESOURCE) {
1502 if (PGG(default_link)==-1) { /* no link opened yet, implicitly open one */
1506 return PGG(default_link);
1565 id = PGG(default_link);
1580 || (pgsql_link && Z_RESVAL_P(pgsql_link)==PGG(default_link))) {
1581 zend_list_delete(PGG(default_link));
1582 PGG(default_link) = -1;
1613 id = PGG(default_link);
1761 id = PGG(default_link);
1794 id = PGG(default_link);
1836 id = PGG(default_link);
1862 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
1938 id = PGG(default_link);
1999 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2059 id = PGG(default_link);
2085 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2145 id = PGG(default_link);
2206 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2331 if (zend_hash_index_find(&PGG(notices), Z_RESVAL_P(pgsql_link), (void **)&notice) == FAILURE) {
3115 id = PGG(default_link);
3160 id = PGG(default_link);
3193 id = PGG(default_link);
3286 id = PGG(default_link);
3296 id = PGG(default_link);
3358 id = PGG(default_link);
3368 id = PGG(default_link);
3579 id = PGG(default_link);
3687 id = PGG(default_link);
3698 id = PGG(default_link);
3854 id = PGG(default_link);
3893 id = PGG(default_link);
3925 id = PGG(default_link);
3963 id = PGG(default_link);
3998 id = PGG(default_link);
4319 id = PGG(default_link);
4360 id = PGG(default_link);
4532 id = PGG(default_link);
4858 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
4965 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5040 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
5152 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
6701 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pg_link) != CONNECTION_OK) {