Lines Matching refs:NULL
164 xmlNsPtr nsptr, nsdftptr, curns, prevns = NULL; in dom_reconcile_ns()
168 if (nodep->nsDef != NULL) { in dom_reconcile_ns()
172 if (curns->href != NULL) { in dom_reconcile_ns()
174 (curns->prefix == NULL || xmlStrEqual(nsptr->prefix, curns->prefix))) { in dom_reconcile_ns()
175 curns->next = NULL; in dom_reconcile_ns()
176 if (prevns == NULL) { in dom_reconcile_ns()
203 char *str = NULL; in dom_node_node_name_read()
204 xmlChar *qname = NULL; in dom_node_node_name_read()
208 if (nodep == NULL) { in dom_node_node_name_read()
217 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
228 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
262 php_error_docref(NULL, E_WARNING, "Invalid Node Type"); in dom_node_node_name_read()
265 if (str != NULL) { in dom_node_node_name_read()
271 if (qname != NULL) { in dom_node_node_name_read()
289 char *str = NULL; in dom_node_node_value_read()
291 if (nodep == NULL) { in dom_node_node_value_read()
310 str = NULL; in dom_node_node_value_read()
314 if(str != NULL) { in dom_node_node_value_read()
329 if (nodep == NULL) { in dom_node_node_value_write()
341 nodep->children = NULL; in dom_node_node_value_write()
373 if (nodep == NULL) { in dom_node_node_type_read()
401 if (nodep == NULL) { in dom_node_parent_node_read()
428 if (nodep == NULL) { in dom_node_child_nodes_read()
438 dom_namednode_iter(obj, XML_ELEMENT_NODE, intern, NULL, NULL, NULL); in dom_node_child_nodes_read()
453 xmlNode *nodep, *first = NULL; in dom_node_first_child_read()
457 if (nodep == NULL) { in dom_node_first_child_read()
484 xmlNode *nodep, *last = NULL; in dom_node_last_child_read()
488 if (nodep == NULL) { in dom_node_last_child_read()
519 if (nodep == NULL) { in dom_node_previous_sibling_read()
547 if (nodep == NULL) { in dom_node_next_sibling_read()
574 if (nodep == NULL) { in dom_node_attributes_read()
582 dom_namednode_iter(obj, XML_ATTRIBUTE_NODE, intern, NULL, NULL, NULL); in dom_node_attributes_read()
602 if (nodep == NULL) { in dom_node_owner_document_read()
631 char *str = NULL; in dom_node_namespace_uri_read()
633 if (nodep == NULL) { in dom_node_namespace_uri_read()
642 if (nodep->ns != NULL) { in dom_node_namespace_uri_read()
647 str = NULL; in dom_node_namespace_uri_read()
651 if (str != NULL) { in dom_node_namespace_uri_read()
671 char *str = NULL; in dom_node_prefix_read()
673 if (nodep == NULL) { in dom_node_prefix_read()
683 if (ns != NULL && ns->prefix) { in dom_node_prefix_read()
688 str = NULL; in dom_node_prefix_read()
692 if (str == NULL) { in dom_node_prefix_read()
704 xmlNode *nodep, *nsnode = NULL; in dom_node_prefix_write()
705 xmlNsPtr ns = NULL, curns; in dom_node_prefix_write()
711 if (nodep == NULL) { in dom_node_prefix_write()
720 if (nsnode == NULL) { in dom_node_prefix_write()
722 if (nsnode == NULL) { in dom_node_prefix_write()
728 if (nsnode && nodep->ns != NULL && !xmlStrEqual(nodep->ns->prefix, (xmlChar *)prefix)) { in dom_node_prefix_write()
730 if (strURI == NULL || in dom_node_prefix_write()
735 ns = NULL; in dom_node_prefix_write()
738 while (curns != NULL) { in dom_node_prefix_write()
745 if (ns == NULL) { in dom_node_prefix_write()
750 if (ns == NULL) { in dom_node_prefix_write()
778 if (nodep == NULL) { in dom_node_local_name_read()
804 if (nodep == NULL) { in dom_node_base_uri_read()
830 char *str = NULL; in dom_node_text_content_read()
832 if (nodep == NULL) { in dom_node_text_content_read()
839 if (str != NULL) { in dom_node_text_content_read()
854 if (nodep == NULL) { in dom_node_text_content_write()
863 nodep->children = NULL; in dom_node_text_content_write()
885 if (prevsib == NULL) { in _php_dom_insert_fragment()
891 if (nextsib == NULL) { in _php_dom_insert_fragment()
899 while (node != NULL) { in _php_dom_insert_fragment()
903 if (node->_private != NULL) { in _php_dom_insert_fragment()
906 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL); in _php_dom_insert_fragment()
915 fragment->children = NULL; in _php_dom_insert_fragment()
916 fragment->last = NULL; in _php_dom_insert_fragment()
929 zval *id, *node, *ref = NULL; in PHP_FUNCTION()
946 new_child = NULL; in PHP_FUNCTION()
951 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
961 if (child->doc != parentp->doc && child->doc != NULL) { in PHP_FUNCTION()
966 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
967 php_error_docref(NULL, E_WARNING, "Document Fragment is empty"); in PHP_FUNCTION()
971 if (child->doc == NULL && parentp->doc != NULL) { in PHP_FUNCTION()
973 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL); in PHP_FUNCTION()
976 if (ref != NULL) { in PHP_FUNCTION()
983 if (child->parent != NULL) { in PHP_FUNCTION()
988 (refp->prev != NULL && refp->prev->type == XML_TEXT_NODE))) { in PHP_FUNCTION()
989 if (child->doc == NULL) { in PHP_FUNCTION()
997 if (new_child->prev != NULL) { in PHP_FUNCTION()
1000 if (new_child->parent != NULL) { in PHP_FUNCTION()
1009 if (child->ns == NULL) in PHP_FUNCTION()
1013 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1026 if (new_child == NULL) { in PHP_FUNCTION()
1030 if (child->parent != NULL){ in PHP_FUNCTION()
1033 …if (child->type == XML_TEXT_NODE && parentp->last != NULL && parentp->last->type == XML_TEXT_NODE)… in PHP_FUNCTION()
1035 if (child->doc == NULL) { in PHP_FUNCTION()
1039 if (parentp->children == NULL) { in PHP_FUNCTION()
1051 if (child->ns == NULL) in PHP_FUNCTION()
1055 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1065 new_child = _php_dom_insert_fragment(parentp, parentp->last, NULL, child, intern, childobj); in PHP_FUNCTION()
1067 if (new_child == NULL) { in PHP_FUNCTION()
1072 if (NULL == new_child) { in PHP_FUNCTION()
1073 php_error_docref(NULL, E_WARNING, "Couldn't add newnode as the previous sibling of refnode"); in PHP_FUNCTION()
1118 (newchild->parent != NULL && dom_node_is_read_only(newchild->parent) == SUCCESS)) { in PHP_FUNCTION()
1123 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in PHP_FUNCTION()
1155 if (newchild->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1158 php_libxml_increment_doc_ref((php_libxml_node_object *)newchildobj, NULL); in PHP_FUNCTION()
1198 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1230 xmlNodePtr child, nodep, new_child = NULL; in PHP_FUNCTION()
1249 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1259 if (!(child->doc == NULL || child->doc == nodep->doc)) { in PHP_FUNCTION()
1264 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
1265 php_error_docref(NULL, E_WARNING, "Document Fragment is empty"); in PHP_FUNCTION()
1269 if (child->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1271 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL); in PHP_FUNCTION()
1274 if (child->parent != NULL){ in PHP_FUNCTION()
1278 if (child->type == XML_TEXT_NODE && nodep->last != NULL && nodep->last->type == XML_TEXT_NODE) { in PHP_FUNCTION()
1280 if (child->doc == NULL) { in PHP_FUNCTION()
1284 if (nodep->children == NULL) { in PHP_FUNCTION()
1296 if (child->ns == NULL) in PHP_FUNCTION()
1300 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1307 new_child = _php_dom_insert_fragment(nodep, nodep->last, NULL, child, intern, childobj); in PHP_FUNCTION()
1310 if (new_child == NULL) { in PHP_FUNCTION()
1312 if (new_child == NULL) { in PHP_FUNCTION()
1313 php_error_docref(NULL, E_WARNING, "Couldn't append node"); in PHP_FUNCTION()
1379 if (n->nsDef != NULL) { in PHP_FUNCTION()
1382 if (n->ns != NULL) { in PHP_FUNCTION()
1385 if (ns == NULL) { in PHP_FUNCTION()
1387 if (ns != NULL) { in PHP_FUNCTION()
1390 while (root->parent != NULL) { in PHP_FUNCTION()
1399 if (n->properties != NULL) { in PHP_FUNCTION()
1406 intern = NULL; in PHP_FUNCTION()
1526 xmlNodePtr nodep, lookupp = NULL; in PHP_FUNCTION()
1558 if (lookupp != NULL) { in PHP_FUNCTION()
1560 if (nsptr && nsptr->prefix != NULL) { in PHP_FUNCTION()
1593 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_FUNCTION()
1623 if (nodep == NULL) { in PHP_FUNCTION()
1629 if (nsptr && nsptr->href != NULL) { in PHP_FUNCTION()
1680 zval *xpath_array=NULL, *ns_prefixes=NULL; in dom_canonicalization()
1683 xmlNodeSetPtr nodeset = NULL; in dom_canonicalization()
1686 xmlChar **inclusive_ns_prefixes = NULL; in dom_canonicalization()
1687 char *file = NULL; in dom_canonicalization()
1691 xmlXPathContextPtr ctxp=NULL; in dom_canonicalization()
1692 xmlXPathObjectPtr xpathobjp=NULL; in dom_canonicalization()
1713 php_error_docref(NULL, E_WARNING, "Node must be associated with a document"); in dom_canonicalization()
1717 if (xpath_array == NULL) { in dom_canonicalization()
1722 ctxp->node = NULL; in dom_canonicalization()
1730 php_error_docref(NULL, E_WARNING, "XPath query did not return a nodeset."); in dom_canonicalization()
1744 php_error_docref(NULL, E_WARNING, "'query' missing from xpath array or is not a string"); in dom_canonicalization()
1766 ctxp->node = NULL; in dom_canonicalization()
1774 php_error_docref(NULL, E_WARNING, "XPath query did not return a nodeset."); in dom_canonicalization()
1779 if (ns_prefixes != NULL) { in dom_canonicalization()
1791 inclusive_ns_prefixes[nscount] = NULL; in dom_canonicalization()
1793 php_error_docref(NULL, E_NOTICE, in dom_canonicalization()
1799 buf = xmlOutputBufferCreateFilename(file, NULL, 0); in dom_canonicalization()
1801 buf = xmlAllocOutputBuffer(NULL); in dom_canonicalization()
1804 if (buf != NULL) { in dom_canonicalization()
1809 if (inclusive_ns_prefixes != NULL) { in dom_canonicalization()
1812 if (xpathobjp != NULL) { in dom_canonicalization()
1815 if (ctxp != NULL) { in dom_canonicalization()
1819 if (buf == NULL || ret < 0) { in dom_canonicalization()
1879 if (value == NULL) { in PHP_METHOD()