Lines Matching refs:entity

147 	xmlEntityPtr entity = data;  in php_libxml_unlink_entity()  local
148 if (entity->_private != NULL) { in php_libxml_unlink_entity()
183 static void php_libxml_unlink_entity_decl(xmlEntityPtr entity) in php_libxml_unlink_entity_decl() argument
185 xmlDtdPtr dtd = entity->parent; in php_libxml_unlink_entity_decl()
187 if (xmlHashLookup(dtd->entities, entity->name) == entity) { in php_libxml_unlink_entity_decl()
188 xmlHashRemoveEntry(dtd->entities, entity->name, NULL); in php_libxml_unlink_entity_decl()
190 if (xmlHashLookup(dtd->pentities, entity->name) == entity) { in php_libxml_unlink_entity_decl()
191 xmlHashRemoveEntry(dtd->pentities, entity->name, NULL); in php_libxml_unlink_entity_decl()
209 xmlEntityPtr entity = (xmlEntityPtr) node; in php_libxml_node_free() local
210 if (entity->etype != XML_INTERNAL_PREDEFINED_ENTITY) { in php_libxml_node_free()
211 php_libxml_unlink_entity_decl(entity); in php_libxml_node_free()
213 xmlFreeEntity(entity); in php_libxml_node_free()
215 …if (entity->children != NULL && entity->owner && entity == (xmlEntityPtr) entity->children->parent… in php_libxml_node_free()
216 xmlFreeNodeList(entity->children); in php_libxml_node_free()
218 xmlDictPtr dict = entity->doc != NULL ? entity->doc->dict : NULL; in php_libxml_node_free()
219 if (dict == NULL || !xmlDictOwns(dict, entity->name)) { in php_libxml_node_free()
220 xmlFree((xmlChar *) entity->name); in php_libxml_node_free()
222 if (dict == NULL || !xmlDictOwns(dict, entity->ExternalID)) { in php_libxml_node_free()
223 xmlFree((xmlChar *) entity->ExternalID); in php_libxml_node_free()
225 if (dict == NULL || !xmlDictOwns(dict, entity->SystemID)) { in php_libxml_node_free()
226 xmlFree((xmlChar *) entity->SystemID); in php_libxml_node_free()
228 if (dict == NULL || !xmlDictOwns(dict, entity->URI)) { in php_libxml_node_free()
229 xmlFree((xmlChar *) entity->URI); in php_libxml_node_free()
231 if (dict == NULL || !xmlDictOwns(dict, entity->content)) { in php_libxml_node_free()
232 xmlFree(entity->content); in php_libxml_node_free()
234 if (dict == NULL || !xmlDictOwns(dict, entity->orig)) { in php_libxml_node_free()
235 xmlFree(entity->orig); in php_libxml_node_free()
237 xmlFree(entity); in php_libxml_node_free()
244 xmlEntityPtr entity = (xmlEntityPtr) node; in php_libxml_node_free() local
248 if (entity->ExternalID != NULL) { in php_libxml_node_free()
249 xmlFree((char *) entity->ExternalID); in php_libxml_node_free()
251 if (entity->SystemID != NULL) { in php_libxml_node_free()
252 xmlFree((char *) entity->SystemID); in php_libxml_node_free()