Lines Matching refs:PGG

888 	if (PGG(default_link) != -1) {  in php_pgsql_set_default_link()
889 zend_list_delete(PGG(default_link)); in php_pgsql_set_default_link()
892 PGG(default_link) = id; in php_pgsql_set_default_link()
907 PGG(num_links)--; in _close_pgsql_link()
922 PGG(num_persistent)--; in _close_pgsql_plink()
923 PGG(num_links)--; in _close_pgsql_plink()
934 if (! PGG(ignore_notices)) { in _php_pgsql_notice_handler()
937 if (PGG(log_notices)) { in _php_pgsql_notice_handler()
940 …zend_hash_index_update(&PGG(notices), (ulong)resource_id, (void **)&notice, sizeof(php_pgsql_notic… in _php_pgsql_notice_handler()
985 orig = PGG(ignore_notices); in _rollback_transactions()
986 PGG(ignore_notices) = 1; in _rollback_transactions()
995 PGG(ignore_notices) = orig; in _rollback_transactions()
1162 zend_hash_destroy(&PGG(notices)); in PHP_MSHUTDOWN_FUNCTION()
1172 PGG(default_link)=-1; in PHP_RINIT_FUNCTION()
1173 PGG(num_links) = PGG(num_persistent); in PHP_RINIT_FUNCTION()
1183 zend_hash_clean(&PGG(notices)); in PHP_RSHUTDOWN_FUNCTION()
1212 snprintf(buf, sizeof(buf), "%ld", PGG(num_persistent)); in PHP_MINFO_FUNCTION()
1214 snprintf(buf, sizeof(buf), "%ld", PGG(num_links)); in PHP_MINFO_FUNCTION()
1280 if (persistent && PGG(allow_persistent)) {
1287 if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
1289 "Cannot create new link. Too many open links (%ld)", PGG(num_links));
1292 if (PGG(max_persistent)!=-1 && PGG(num_persistent)>=PGG(max_persistent)) {
1294 "Cannot create new link. Too many open persistent links (%ld)", PGG(num_persistent));
1318 PGG(num_links)++;
1319 PGG(num_persistent)++;
1325 if (PGG(auto_reset_persistent) & 1) {
1389 if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
1390 …ef(NULL TSRMLS_CC, E_WARNING, "Cannot create new link. Too many open links (%ld)", PGG(num_links));
1415 PGG(num_links)++;
1418 if (! PGG(ignore_notices) && Z_TYPE_P(return_value) == IS_RESOURCE) {
1438 if (PGG(default_link)==-1) { /* no link opened yet, implicitly open one */
1442 return PGG(default_link);
1476 id = PGG(default_link);
1491 || (pgsql_link && Z_RESVAL_P(pgsql_link)==PGG(default_link))) {
1492 zend_list_delete(PGG(default_link));
1493 PGG(default_link) = -1;
1524 id = PGG(default_link);
1650 id = PGG(default_link);
1683 id = PGG(default_link);
1725 id = PGG(default_link);
1751 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
1827 id = PGG(default_link);
1888 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
1948 id = PGG(default_link);
1974 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2034 id = PGG(default_link);
2095 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
2220 if (zend_hash_index_find(&PGG(notices), Z_RESVAL_P(pgsql_link), (void **)&notice) == FAILURE) {
3015 id = PGG(default_link);
3060 id = PGG(default_link);
3093 id = PGG(default_link);
3186 id = PGG(default_link);
3196 id = PGG(default_link);
3258 id = PGG(default_link);
3268 id = PGG(default_link);
3479 id = PGG(default_link);
3587 id = PGG(default_link);
3598 id = PGG(default_link);
3702 id = PGG(default_link);
3741 id = PGG(default_link);
3773 id = PGG(default_link);
3811 id = PGG(default_link);
3846 id = PGG(default_link);
4150 id = PGG(default_link);
4191 id = PGG(default_link);
4362 id = PGG(default_link);
4673 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
4766 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
4826 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {
4921 if ((PGG(auto_reset_persistent) & 2) && PQstatus(pgsql) != CONNECTION_OK) {