Lines Matching refs:ptr
900 PGconn *link = (PGconn *)rsrc->ptr; in _close_pgsql_link()
915 PGconn *link = (PGconn *)rsrc->ptr; in _close_pgsql_plink()
949 static void _php_pgsql_notice_ptr_dtor(void **ptr) in _php_pgsql_notice_ptr_dtor() argument
951 php_pgsql_notice *notice = (php_pgsql_notice *)*ptr; in _php_pgsql_notice_ptr_dtor()
971 link = (PGconn *) rsrc->ptr; in _rollback_transactions()
1006 pgLofp *lofp = (pgLofp *)rsrc->ptr; in _free_ptr()
1015 pgsql_result_handle *pg_result = (pgsql_result_handle *)rsrc->ptr; in _free_result()
1314 new_le.ptr = pgsql;
1329 pg_result = PQexec(le->ptr, "select 1");
1332 if (PQstatus(le->ptr)==CONNECTION_BAD) { /* the link died */
1333 if (le->ptr == NULL) {
1335 le->ptr=PQconnectdb(connstring);
1337 le->ptr=PQsetdb(host,port,options,tty,dbname);
1341 PQreset(le->ptr);
1343 if (le->ptr==NULL || PQstatus(le->ptr)==CONNECTION_BAD) {
1349 pgsql = (PGconn *) le->ptr;
1372 void *ptr; local
1377 link = (ulong) index_ptr->ptr;
1378 ptr = zend_list_find(link,&type); /* check if the link is still there */
1379 if (ptr && (type==le_link || type==le_plink)) {
1410 new_index_ptr.ptr = (void *) Z_LVAL_P(return_value);
2242 ret = estrdup((char *)field_type->ptr);
2274 new_oid_entry.ptr = estrdup(tmp_name);
2338 RETURN_STRING((char *)field_table->ptr, 1);
2366 new_field_table.ptr = estrdup(table_name);