Lines Matching defs:pdbc
82 struct php_DBC *pdbc = (struct php_DBC *) rsrc->ptr;
84 pdbc->dbc = NULL;
86 if(pdbc) efree(pdbc);
840 struct php_DBC *pdbc = (struct php_DBC *) el->data;
841 if(pdbc) {
842 if(pdbc->dbc) {
843 pdbc->dbc->c_close(pdbc->dbc);
844 pdbc->dbc = NULL;
846 pdbc->parent_txn = NULL;
861 struct php_DBC *pdbc = (struct php_DBC *) emalloc(sizeof(*pdbc));
862 memset(pdbc, 0, sizeof(*pdbc));
863 pdbc->dbc = dbc;
865 pdbc->parent_txn = txn;
866 txn->open_cursors = my_llist_add(txn->open_cursors, pdbc);
868 rsrc_id = zend_register_resource(NULL, pdbc, le_dbc);
875 struct php_DBC *pdbc;
880 pdbc = (struct php_DBC *) zend_fetch_resource(rsrc TSRMLS_CC, -1, "Db4Cursor", NULL, 1, le_dbc);
881 return pdbc->dbc;
888 struct php_DBC *pdbc;
893 pdbc = (struct php_DBC *) zend_fetch_resource(rsrc TSRMLS_CC, -1, "Db4Cursor", NULL, 1, le_dbc);
894 return pdbc;
916 struct php_DBC *pdbc = getPhpDbcFromObj(obj TSRMLS_CC);
917 if(pdbc) {
918 if(pdbc->parent_txn) {
919 pdbc->parent_txn->open_cursors =
920 my_llist_del(pdbc->parent_txn->open_cursors, pdbc);
922 ret = pdbc->dbc->c_close(pdbc->dbc);
923 pdbc->dbc = NULL;
924 pdbc->parent_txn = NULL;