Lines Matching defs:pdbc
82 struct php_DBC *pdbc = (struct php_DBC *) rsrc->ptr;
84 pdbc->dbc = NULL;
86 if(pdbc) efree(pdbc);
841 struct php_DBC *pdbc = (struct php_DBC *) el->data;
842 if(pdbc) {
843 if(pdbc->dbc) {
844 pdbc->dbc->c_close(pdbc->dbc);
845 pdbc->dbc = NULL;
847 pdbc->parent_txn = NULL;
862 struct php_DBC *pdbc = (struct php_DBC *) emalloc(sizeof(*pdbc));
863 memset(pdbc, 0, sizeof(*pdbc));
864 pdbc->dbc = dbc;
866 pdbc->parent_txn = txn;
867 txn->open_cursors = my_llist_add(txn->open_cursors, pdbc);
869 rsrc_id = zend_register_resource(NULL, pdbc, le_dbc);
876 struct php_DBC *pdbc;
881 pdbc = (struct php_DBC *) zend_fetch_resource(rsrc TSRMLS_CC, -1, "Db4Cursor", NULL, 1, le_dbc);
882 return pdbc->dbc;
889 struct php_DBC *pdbc;
894 pdbc = (struct php_DBC *) zend_fetch_resource(rsrc TSRMLS_CC, -1, "Db4Cursor", NULL, 1, le_dbc);
895 return pdbc;
917 struct php_DBC *pdbc = getPhpDbcFromObj(obj TSRMLS_CC);
918 if(pdbc) {
919 if(pdbc->parent_txn) {
920 pdbc->parent_txn->open_cursors =
921 my_llist_del(pdbc->parent_txn->open_cursors, pdbc);
923 ret = pdbc->dbc->c_close(pdbc->dbc);
924 pdbc->dbc = NULL;
925 pdbc->parent_txn = NULL;