Lines Matching refs:entity

145 	xmlEntityPtr entity = data;  in php_libxml_unlink_entity()  local
146 if (entity->_private != NULL) { in php_libxml_unlink_entity()
173 static void php_libxml_unlink_entity_decl(xmlEntityPtr entity) in php_libxml_unlink_entity_decl() argument
175 xmlDtdPtr dtd = entity->parent; in php_libxml_unlink_entity_decl()
177 if (xmlHashLookup(dtd->entities, entity->name) == entity) { in php_libxml_unlink_entity_decl()
178 xmlHashRemoveEntry(dtd->entities, entity->name, NULL); in php_libxml_unlink_entity_decl()
180 if (xmlHashLookup(dtd->pentities, entity->name) == entity) { in php_libxml_unlink_entity_decl()
181 xmlHashRemoveEntry(dtd->pentities, entity->name, NULL); in php_libxml_unlink_entity_decl()
198 xmlEntityPtr entity = (xmlEntityPtr) node; in php_libxml_node_free() local
199 if (entity->etype != XML_INTERNAL_PREDEFINED_ENTITY) { in php_libxml_node_free()
200 php_libxml_unlink_entity_decl(entity); in php_libxml_node_free()
202 xmlFreeEntity(entity); in php_libxml_node_free()
204 …if (entity->children != NULL && entity->owner && entity == (xmlEntityPtr) entity->children->parent… in php_libxml_node_free()
205 xmlFreeNodeList(entity->children); in php_libxml_node_free()
207 xmlDictPtr dict = entity->doc != NULL ? entity->doc->dict : NULL; in php_libxml_node_free()
208 if (dict == NULL || !xmlDictOwns(dict, entity->name)) { in php_libxml_node_free()
209 xmlFree((xmlChar *) entity->name); in php_libxml_node_free()
211 if (dict == NULL || !xmlDictOwns(dict, entity->ExternalID)) { in php_libxml_node_free()
212 xmlFree((xmlChar *) entity->ExternalID); in php_libxml_node_free()
214 if (dict == NULL || !xmlDictOwns(dict, entity->SystemID)) { in php_libxml_node_free()
215 xmlFree((xmlChar *) entity->SystemID); in php_libxml_node_free()
217 if (dict == NULL || !xmlDictOwns(dict, entity->URI)) { in php_libxml_node_free()
218 xmlFree((xmlChar *) entity->URI); in php_libxml_node_free()
220 if (dict == NULL || !xmlDictOwns(dict, entity->content)) { in php_libxml_node_free()
221 xmlFree(entity->content); in php_libxml_node_free()
223 if (dict == NULL || !xmlDictOwns(dict, entity->orig)) { in php_libxml_node_free()
224 xmlFree(entity->orig); in php_libxml_node_free()
226 xmlFree(entity); in php_libxml_node_free()
233 xmlEntityPtr entity = (xmlEntityPtr) node; in php_libxml_node_free() local
237 if (entity->ExternalID != NULL) { in php_libxml_node_free()
238 xmlFree((char *) entity->ExternalID); in php_libxml_node_free()
240 if (entity->SystemID != NULL) { in php_libxml_node_free()
241 xmlFree((char *) entity->SystemID); in php_libxml_node_free()