Lines Matching refs:NULL

154 	xmlNodePtr nodep = NULL, oldnode = NULL;  in PHP_METHOD()
156 char *name, *value = NULL, *uri = NULL; in PHP_METHOD()
157 char *localname = NULL, *prefix = NULL; in PHP_METHOD()
161 xmlNsPtr nsptr = NULL; in PHP_METHOD()
177 nodep = xmlNewNode (NULL, (xmlChar *)localname); in PHP_METHOD()
178 if (nodep != NULL && uri != NULL) { in PHP_METHOD()
184 if (prefix != NULL) { in PHP_METHOD()
188 if (nodep != NULL) { in PHP_METHOD()
197 if (prefix != NULL) { in PHP_METHOD()
203 nodep = xmlNewNode(NULL, (xmlChar *) name); in PHP_METHOD()
217 if (oldnode != NULL) { in PHP_METHOD()
237 if (nodep == NULL) { in dom_element_tag_name_read()
243 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
277 if (nqname != NULL) { in dom_get_dom1_attribute()
292 if (prefix != NULL) { in dom_get_dom1_attribute()
295 if (ns != NULL) { in dom_get_dom1_attribute()
302 if (nsPtr->prefix == NULL) { in dom_get_dom1_attribute()
307 return NULL; in dom_get_dom1_attribute()
310 return (xmlNodePtr)xmlHasNsProp(elem, name, NULL); in dom_get_dom1_attribute()
323 xmlChar *value = NULL; in PHP_FUNCTION()
349 if (value == NULL) { in PHP_FUNCTION()
366 xmlNodePtr attr = NULL; in PHP_FUNCTION()
378 php_error_docref(NULL, E_WARNING, "Attribute Name is required"); in PHP_FUNCTION()
396 if (attr != NULL) { in PHP_FUNCTION()
410 if (xmlNewNs(nodep, (xmlChar *)value, NULL)) { in PHP_FUNCTION()
417 php_error_docref(NULL, E_WARNING, "No such attribute '%s'", name); in PHP_FUNCTION()
451 if (attrp == NULL) { in PHP_FUNCTION()
457 if (php_dom_object_get_data(attrp) == NULL) { in PHP_FUNCTION()
496 if (attrp == NULL) { in PHP_FUNCTION()
505 curns = xmlNewNs(NULL, attrp->name, NULL); in PHP_FUNCTION()
510 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) attrp->children, attrp->name); in PHP_FUNCTION()
512 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", attrp->name); in PHP_FUNCTION()
531 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION()
550 php_error_docref(NULL, E_WARNING, "Attribute node is required"); in PHP_FUNCTION()
554 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
560 if (existattrp != NULL && existattrp->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
561 if ((oldobj = php_dom_object_get_data((xmlNodePtr) existattrp)) != NULL && in PHP_FUNCTION()
569 if (attrp->parent != NULL) { in PHP_FUNCTION()
573 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
575 php_libxml_increment_doc_ref((php_libxml_node_object *)attrobj, NULL); in PHP_FUNCTION()
581 if (existattrp != NULL) { in PHP_FUNCTION()
651 dom_namednode_iter(intern, 0, namednode, NULL, local, NULL); in PHP_FUNCTION()
678 if (strattr != NULL) { in PHP_FUNCTION()
684 if (nsptr != NULL) { in PHP_FUNCTION()
703 if ((tree == NULL) || (ns == NULL) || (ns->type != XML_NAMESPACE_DECL)) { in _dom_new_reconNs()
704 return NULL; in _dom_new_reconNs()
712 if (ns->prefix == NULL) in _dom_new_reconNs()
718 while (def != NULL) { in _dom_new_reconNs()
719 if (counter > 1000) return(NULL); in _dom_new_reconNs()
720 if (ns->prefix == NULL) in _dom_new_reconNs()
743 xmlNodePtr elemp, nodep = NULL; in PHP_FUNCTION()
748 char *localname = NULL, *prefix = NULL; in PHP_FUNCTION()
758 php_error_docref(NULL, E_WARNING, "Attribute Name is required"); in PHP_FUNCTION()
776 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
781 (prefix == NULL && xmlStrEqual((xmlChar *) localname, (xmlChar *)"xmlns"))) && in PHP_FUNCTION()
784 if (prefix == NULL) { in PHP_FUNCTION()
785 nsptr = dom_get_nsdecl(elemp, NULL); in PHP_FUNCTION()
791 if (nsptr && nsptr->prefix == NULL) { in PHP_FUNCTION()
796 if ((tmpnsptr->prefix != NULL) && (tmpnsptr->href != NULL) && in PHP_FUNCTION()
803 if (tmpnsptr == NULL) { in PHP_FUNCTION()
809 if (nsptr == NULL) { in PHP_FUNCTION()
810 if (prefix == NULL) { in PHP_FUNCTION()
812 xmlNewNs(elemp, (xmlChar *)value, NULL); in PHP_FUNCTION()
844 if (attr != NULL && attr->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
853 if (prefix != NULL) { in PHP_FUNCTION()
894 if (nsptr != NULL) { in PHP_FUNCTION()
896 if (nsptr->href != NULL) { in PHP_FUNCTION()
898 nsptr->href = NULL; in PHP_FUNCTION()
900 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
902 nsptr->prefix = NULL; in PHP_FUNCTION()
910 if (php_dom_object_get_data((xmlNodePtr) attrp) == NULL) { in PHP_FUNCTION()
946 if (attrp == NULL) { in PHP_FUNCTION()
950 if (nsptr != NULL) { in PHP_FUNCTION()
952 curns = xmlNewNs(NULL, nsptr->href, NULL); in PHP_FUNCTION()
957 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *) nsptr->prefix, nsptr->href); in PHP_FUNCTION()
959 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *)"xmlns", nsptr->href); in PHP_FUNCTION()
988 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION()
1007 php_error_docref(NULL, E_WARNING, "Attribute node is required"); in PHP_FUNCTION()
1011 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
1017 if (nsp != NULL) { in PHP_FUNCTION()
1023 if (existattrp != NULL && existattrp->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1024 if ((oldobj = php_dom_object_get_data((xmlNodePtr) existattrp)) != NULL && in PHP_FUNCTION()
1032 if (attrp->parent != NULL) { in PHP_FUNCTION()
1036 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1038 php_libxml_increment_doc_ref((php_libxml_node_object *)attrobj, NULL); in PHP_FUNCTION()
1044 if (existattrp != NULL) { in PHP_FUNCTION()
1077 dom_namednode_iter(intern, 0, namednode, NULL, local, nsuri); in PHP_FUNCTION()
1103 if (attr == NULL) { in PHP_FUNCTION()
1134 if (value != NULL) { in PHP_FUNCTION()
1140 if (nsp != NULL) { in PHP_FUNCTION()
1156 if (id_val != NULL) { in php_set_attribute_id()
1157 xmlAddID(NULL, attrp->doc, id_val, attrp); in php_set_attribute_id()
1193 attrp = xmlHasNsProp(nodep, (xmlChar *)name, NULL); in PHP_FUNCTION()
1194 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1231 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()