Lines Matching refs:PGG

770 	if (PGG(default_link) != -1) {  in php_pgsql_set_default_link()
771 zend_list_delete(PGG(default_link)); in php_pgsql_set_default_link()
774 PGG(default_link) = id; in php_pgsql_set_default_link()
789 PGG(num_links)--; in _close_pgsql_link()
804 PGG(num_persistent)--; in _close_pgsql_plink()
805 PGG(num_links)--; in _close_pgsql_plink()
816 if (! PGG(ignore_notices)) { in _php_pgsql_notice_handler()
819 if (PGG(log_notices)) { in _php_pgsql_notice_handler()
822 …zend_hash_index_update(&PGG(notices), (ulong)resource_id, (void **)&notice, sizeof(php_pgsql_notic… in _php_pgsql_notice_handler()
867 orig = PGG(ignore_notices); in _rollback_transactions()
868 PGG(ignore_notices) = 1; in _rollback_transactions()
877 PGG(ignore_notices) = orig; in _rollback_transactions()
1013 zend_hash_destroy(&PGG(notices)); in PHP_MSHUTDOWN_FUNCTION()
1023 PGG(default_link)=-1; in PHP_RINIT_FUNCTION()
1024 PGG(num_links) = PGG(num_persistent); in PHP_RINIT_FUNCTION()
1034 zend_hash_clean(&PGG(notices)); in PHP_RSHUTDOWN_FUNCTION()
1062 snprintf(buf, sizeof(buf), "%ld", PGG(num_persistent)); in PHP_MINFO_FUNCTION()
1064 snprintf(buf, sizeof(buf), "%ld", PGG(num_links)); in PHP_MINFO_FUNCTION()
1130 if (persistent && PGG(allow_persistent)) {
1137 if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
1139 "Cannot create new link. Too many open links (%ld)", PGG(num_links));
1142 if (PGG(max_persistent)!=-1 && PGG(num_persistent)>=PGG(max_persistent)) {
1144 "Cannot create new link. Too many open persistent links (%ld)", PGG(num_persistent));
1168 PGG(num_links)++;
1169 PGG(num_persistent)++;
1175 if (PGG(auto_reset_persistent) & 1) {
1239 if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
1240 …ef(NULL TSRMLS_CC, E_WARNING, "Cannot create new link. Too many open links (%ld)", PGG(num_links));
1265 PGG(num_links)++;
1268 if (! PGG(ignore_notices) && Z_TYPE_P(return_value) == IS_RESOURCE) {
1288 if (PGG(default_link)==-1) { /* no link opened yet, implicitly open one */
1292 return PGG(default_link);
1326 id = PGG(default_link);
1341 || (pgsql_link && Z_RESVAL_P(pgsql_link)==PGG(default_link))) {
1342 zend_list_delete(PGG(default_link));
1343 PGG(default_link) = -1;
1373 id = PGG(default_link);
1499 id = PGG(default_link);
1532 id = PGG(default_link);
1574 id = PGG(default_link);
1600 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
1676 id = PGG(default_link);
1737 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
1797 id = PGG(default_link);
1823 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
1883 id = PGG(default_link);
1944 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2069 if (zend_hash_index_find(&PGG(notices), Z_RESVAL_P(pgsql_link), (void **)&notice) == FAILURE) {
2870 id = PGG(default_link);
2915 id = PGG(default_link);
2948 id = PGG(default_link);
3041 id = PGG(default_link);
3051 id = PGG(default_link);
3113 id = PGG(default_link);
3123 id = PGG(default_link);
3334 id = PGG(default_link);
3450 id = PGG(default_link);
3461 id = PGG(default_link);
3573 id = PGG(default_link);
3612 id = PGG(default_link);
3644 id = PGG(default_link);
3686 id = PGG(default_link);
3721 id = PGG(default_link);
4025 id = PGG(default_link);
4067 id = PGG(default_link);
4473 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
4557 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
4608 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
4694 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {