Lines Matching refs:document

1259 	if (object->document != NULL) {  in php_libxml_increment_doc_ref()
1260 object->document->refcount++; in php_libxml_increment_doc_ref()
1261 ret_refcount = object->document->refcount; in php_libxml_increment_doc_ref()
1264 object->document = emalloc(sizeof(php_libxml_ref_obj)); in php_libxml_increment_doc_ref()
1265 object->document->ptr = docp; in php_libxml_increment_doc_ref()
1266 object->document->refcount = ret_refcount; in php_libxml_increment_doc_ref()
1267 object->document->doc_props = NULL; in php_libxml_increment_doc_ref()
1277 if (object != NULL && object->document != NULL) { in php_libxml_decrement_doc_ref()
1278 ret_refcount = --object->document->refcount; in php_libxml_decrement_doc_ref()
1280 if (object->document->ptr != NULL) { in php_libxml_decrement_doc_ref()
1281 xmlFreeDoc((xmlDoc *) object->document->ptr); in php_libxml_decrement_doc_ref()
1283 if (object->document->doc_props != NULL) { in php_libxml_decrement_doc_ref()
1284 if (object->document->doc_props->classmap) { in php_libxml_decrement_doc_ref()
1285 zend_hash_destroy(object->document->doc_props->classmap); in php_libxml_decrement_doc_ref()
1286 FREE_HASHTABLE(object->document->doc_props->classmap); in php_libxml_decrement_doc_ref()
1288 efree(object->document->doc_props); in php_libxml_decrement_doc_ref()
1290 efree(object->document); in php_libxml_decrement_doc_ref()
1292 object->document = NULL; in php_libxml_decrement_doc_ref()
1352 if (object != NULL && object->document != NULL) { in php_libxml_node_decrement_resource()