Lines Matching refs:new_object
120 MYSQLND * new_object; in MYSQLND_METHOD() local
125 new_object = mnd_pecalloc(1, alloc_size_ret, persistent); in MYSQLND_METHOD()
126 if (!new_object) { in MYSQLND_METHOD()
129 new_object->data = mnd_pecalloc(1, alloc_size_ret_data, persistent); in MYSQLND_METHOD()
130 if (!new_object->data) { in MYSQLND_METHOD()
131 mnd_pefree(new_object, persistent); in MYSQLND_METHOD()
134 new_object->persistent = persistent; in MYSQLND_METHOD()
135 new_object->m = mysqlnd_conn_get_methods(); in MYSQLND_METHOD()
136 data = new_object->data; in MYSQLND_METHOD()
148 new_object->m->dtor(new_object TSRMLS_CC); in MYSQLND_METHOD()
154 new_object->m->dtor(new_object TSRMLS_CC); in MYSQLND_METHOD()
160 DBG_RETURN(new_object); in MYSQLND_METHOD()
170 MYSQLND * new_object; in MYSQLND_METHOD() local
177 new_object = mnd_pecalloc(1, alloc_size_ret, to_be_cloned->persistent); in MYSQLND_METHOD()
178 if (!new_object) { in MYSQLND_METHOD()
181 new_object->persistent = to_be_cloned->persistent; in MYSQLND_METHOD()
182 new_object->m = to_be_cloned->m; in MYSQLND_METHOD()
184 new_object->data = to_be_cloned->data->m->get_reference(to_be_cloned->data TSRMLS_CC); in MYSQLND_METHOD()
185 if (!new_object->data) { in MYSQLND_METHOD()
186 new_object->m->dtor(new_object TSRMLS_CC); in MYSQLND_METHOD()
187 new_object = NULL; in MYSQLND_METHOD()
189 DBG_RETURN(new_object); in MYSQLND_METHOD()