Lines Matching refs:entity

157 	xmlEntityPtr entity = data;  in php_libxml_unlink_entity()  local
158 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()
208 xmlEntityPtr entity = (xmlEntityPtr) node; in php_libxml_node_free() local
209 if (entity->etype != XML_INTERNAL_PREDEFINED_ENTITY) { in php_libxml_node_free()
210 php_libxml_unlink_entity_decl(entity); in php_libxml_node_free()
212 xmlFreeEntity(entity); in php_libxml_node_free()
214 …if (entity->children != NULL && entity->owner && entity == (xmlEntityPtr) entity->children->parent… in php_libxml_node_free()
215 xmlFreeNodeList(entity->children); in php_libxml_node_free()
217 xmlDictPtr dict = entity->doc != NULL ? entity->doc->dict : NULL; in php_libxml_node_free()
218 if (dict == NULL || !xmlDictOwns(dict, entity->name)) { in php_libxml_node_free()
219 xmlFree((xmlChar *) entity->name); in php_libxml_node_free()
221 if (dict == NULL || !xmlDictOwns(dict, entity->ExternalID)) { in php_libxml_node_free()
222 xmlFree((xmlChar *) entity->ExternalID); in php_libxml_node_free()
224 if (dict == NULL || !xmlDictOwns(dict, entity->SystemID)) { in php_libxml_node_free()
225 xmlFree((xmlChar *) entity->SystemID); in php_libxml_node_free()
227 if (dict == NULL || !xmlDictOwns(dict, entity->URI)) { in php_libxml_node_free()
228 xmlFree((xmlChar *) entity->URI); in php_libxml_node_free()
230 if (dict == NULL || !xmlDictOwns(dict, entity->content)) { in php_libxml_node_free()
231 xmlFree(entity->content); in php_libxml_node_free()
233 if (dict == NULL || !xmlDictOwns(dict, entity->orig)) { in php_libxml_node_free()
234 xmlFree(entity->orig); in php_libxml_node_free()
236 xmlFree(entity); in php_libxml_node_free()
243 xmlEntityPtr entity = (xmlEntityPtr) node; in php_libxml_node_free() local
247 if (entity->ExternalID != NULL) { in php_libxml_node_free()
248 xmlFree((char *) entity->ExternalID); in php_libxml_node_free()
250 if (entity->SystemID != NULL) { in php_libxml_node_free()
251 xmlFree((char *) entity->SystemID); in php_libxml_node_free()