Lines Matching refs:NULL

158 	xmlNodePtr nodep = NULL, oldnode = NULL;  in PHP_METHOD()
160 char *name, *value = NULL, *uri = NULL; in PHP_METHOD()
161 char *localname = NULL, *prefix = NULL; in PHP_METHOD()
164 xmlNsPtr nsptr = NULL; in PHP_METHOD()
184 nodep = xmlNewNode (NULL, (xmlChar *)localname); in PHP_METHOD()
185 if (nodep != NULL && uri != NULL) { in PHP_METHOD()
191 if (prefix != NULL) { in PHP_METHOD()
195 if (nodep != NULL) { in PHP_METHOD()
204 if (prefix != NULL) { in PHP_METHOD()
210 nodep = xmlNewNode(NULL, (xmlChar *) name); in PHP_METHOD()
223 if (intern != NULL) { in PHP_METHOD()
225 if (oldnode != NULL) { in PHP_METHOD()
246 if (nodep == NULL) { in dom_element_tag_name_read()
253 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
288 if (nqname != NULL) { in dom_get_dom1_attribute()
303 if (prefix != NULL) { in dom_get_dom1_attribute()
306 if (ns != NULL) { in dom_get_dom1_attribute()
313 if (nsPtr->prefix == NULL) { in dom_get_dom1_attribute()
318 return NULL; in dom_get_dom1_attribute()
321 return (xmlNodePtr)xmlHasNsProp(elem, name, NULL); in dom_get_dom1_attribute()
334 xmlChar *value = NULL; in PHP_FUNCTION()
359 if (value == NULL) { in PHP_FUNCTION()
374 zval *id, *rv = NULL; in PHP_FUNCTION()
376 xmlNodePtr attr = NULL; in PHP_FUNCTION()
386 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attribute Name is required"); in PHP_FUNCTION()
404 if (attr != NULL) { in PHP_FUNCTION()
418 if (xmlNewNs(nodep, (xmlChar *)value, NULL)) { in PHP_FUNCTION()
425 php_error_docref(NULL TSRMLS_CC, E_WARNING, "No such attribute '%s'", name); in PHP_FUNCTION()
458 if (attrp == NULL) { in PHP_FUNCTION()
464 if (php_dom_object_get_data(attrp) == NULL) { in PHP_FUNCTION()
488 zval *id, *rv = NULL; in PHP_FUNCTION()
501 if (attrp == NULL) { in PHP_FUNCTION()
510 curns = xmlNewNs(NULL, attrp->name, NULL); in PHP_FUNCTION()
515 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) attrp->children, attrp->name); in PHP_FUNCTION()
517 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", attrp->name); in PHP_FUNCTION()
534 zval *id, *node, *rv = NULL; in PHP_FUNCTION()
536 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION()
554 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attribute node is required"); in PHP_FUNCTION()
558 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
564 if (existattrp != NULL && existattrp->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
565 if ((oldobj = php_dom_object_get_data((xmlNodePtr) existattrp)) != NULL && in PHP_FUNCTION()
573 if (attrp->parent != NULL) { in PHP_FUNCTION()
577 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
579 php_libxml_increment_doc_ref((php_libxml_node_object *)attrobj, NULL TSRMLS_CC); in PHP_FUNCTION()
585 if (existattrp != NULL) { in PHP_FUNCTION()
600 zval *id, *node, *rv = NULL; in PHP_FUNCTION()
653 dom_namednode_iter(intern, 0, namednode, NULL, local, NULL TSRMLS_CC); in PHP_FUNCTION()
679 if (strattr != NULL) { in PHP_FUNCTION()
685 if (nsptr != NULL) { in PHP_FUNCTION()
704 if ((tree == NULL) || (ns == NULL) || (ns->type != XML_NAMESPACE_DECL)) { in _dom_new_reconNs()
705 return NULL; in _dom_new_reconNs()
713 if (ns->prefix == NULL) in _dom_new_reconNs()
719 while (def != NULL) { in _dom_new_reconNs()
720 if (counter > 1000) return(NULL); in _dom_new_reconNs()
721 if (ns->prefix == NULL) in _dom_new_reconNs()
744 xmlNodePtr elemp, nodep = NULL; in PHP_FUNCTION()
749 char *localname = NULL, *prefix = NULL; in PHP_FUNCTION()
758 php_error_docref(NULL TSRMLS_CC, 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()
893 if (nsptr != NULL) { in PHP_FUNCTION()
895 if (nsptr->href != NULL) { in PHP_FUNCTION()
897 nsptr->href = NULL; in PHP_FUNCTION()
899 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
901 nsptr->prefix = NULL; in PHP_FUNCTION()
909 if (php_dom_object_get_data((xmlNodePtr) attrp) == NULL) { in PHP_FUNCTION()
928 zval *id, *rv = NULL; in PHP_FUNCTION()
943 if (attrp == NULL) { in PHP_FUNCTION()
958 zval *id, *node, *rv = NULL; in PHP_FUNCTION()
961 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION()
979 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attribute node is required"); in PHP_FUNCTION()
983 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
989 if (nsp != NULL) { in PHP_FUNCTION()
995 if (existattrp != NULL && existattrp->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
996 if ((oldobj = php_dom_object_get_data((xmlNodePtr) existattrp)) != NULL && in PHP_FUNCTION()
1004 if (attrp->parent != NULL) { in PHP_FUNCTION()
1008 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1010 php_libxml_increment_doc_ref((php_libxml_node_object *)attrobj, NULL TSRMLS_CC); in PHP_FUNCTION()
1016 if (existattrp != NULL) { in PHP_FUNCTION()
1048 dom_namednode_iter(intern, 0, namednode, NULL, local, nsuri TSRMLS_CC); in PHP_FUNCTION()
1073 if (attr == NULL) { in PHP_FUNCTION()
1103 if (value != NULL) { in PHP_FUNCTION()
1109 if (nsp != NULL) { in PHP_FUNCTION()
1125 if (id_val != NULL) { in php_set_attribute_id()
1126 xmlAddID(NULL, attrp->doc, id_val, attrp); in php_set_attribute_id()
1163 attrp = xmlHasNsProp(nodep, (xmlChar *)name, NULL); in PHP_FUNCTION()
1164 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1200 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()