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 TSRMLS_CC, E_WARNING, "Invalid Node Type"); in dom_node_node_name_read()
267 if(str != NULL) { in dom_node_node_name_read()
273 if (qname != NULL) { in dom_node_node_name_read()
291 char *str = NULL; in dom_node_node_value_read()
295 if (nodep == NULL) { in dom_node_node_value_read()
314 str = NULL; in dom_node_node_value_read()
320 if(str != NULL) { in dom_node_node_value_read()
339 if (nodep == NULL) { in dom_node_node_value_write()
388 if (nodep == NULL) { in dom_node_node_type_read()
419 if (nodep == NULL) { in dom_node_parent_node_read()
432 if (NULL == (*retval = php_dom_create_object(nodeparent, &ret, NULL, *retval, obj TSRMLS_CC))) { in dom_node_parent_node_read()
433 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_node_parent_node_read()
453 if (nodep == NULL) { in dom_node_child_nodes_read()
465 dom_namednode_iter(obj, XML_ELEMENT_NODE, intern, NULL, NULL, NULL TSRMLS_CC); in dom_node_child_nodes_read()
480 xmlNode *nodep, *first = NULL; in dom_node_first_child_read()
485 if (nodep == NULL) { in dom_node_first_child_read()
501 if (NULL == (*retval = php_dom_create_object(first, &ret, NULL, *retval, obj TSRMLS_CC))) { in dom_node_first_child_read()
502 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_node_first_child_read()
517 xmlNode *nodep, *last = NULL; in dom_node_last_child_read()
522 if (nodep == NULL) { in dom_node_last_child_read()
538 if (NULL == (*retval = php_dom_create_object(last, &ret, NULL, *retval, obj TSRMLS_CC))) { in dom_node_last_child_read()
539 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_node_last_child_read()
559 if (nodep == NULL) { in dom_node_previous_sibling_read()
572 if (NULL == (*retval = php_dom_create_object(prevsib, &ret, NULL, *retval, obj TSRMLS_CC))) { in dom_node_previous_sibling_read()
573 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_node_previous_sibling_read()
593 if (nodep == NULL) { in dom_node_next_sibling_read()
605 if (NULL == (*retval = php_dom_create_object(nextsib, &ret, NULL, *retval, obj TSRMLS_CC))) { in dom_node_next_sibling_read()
606 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_node_next_sibling_read()
626 if (nodep == NULL) { in dom_node_attributes_read()
636 dom_namednode_iter(obj, XML_ATTRIBUTE_NODE, intern, NULL, NULL, NULL TSRMLS_CC); in dom_node_attributes_read()
659 if (nodep == NULL) { in dom_node_owner_document_read()
677 …if (NULL == (*retval = php_dom_create_object((xmlNodePtr) docp, &ret, NULL, *retval, obj TSRMLS_CC… in dom_node_owner_document_read()
678 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_node_owner_document_read()
694 char *str = NULL; in dom_node_namespace_uri_read()
698 if (nodep == NULL) { in dom_node_namespace_uri_read()
707 if (nodep->ns != NULL) { in dom_node_namespace_uri_read()
712 str = NULL; in dom_node_namespace_uri_read()
718 if(str != NULL) { in dom_node_namespace_uri_read()
738 char *str = NULL; in dom_node_prefix_read()
742 if (nodep == NULL) { in dom_node_prefix_read()
752 if (ns != NULL && ns->prefix) { in dom_node_prefix_read()
757 str = NULL; in dom_node_prefix_read()
763 if (str == NULL) { in dom_node_prefix_read()
775 xmlNode *nodep, *nsnode = NULL; in dom_node_prefix_write()
776 xmlNsPtr ns = NULL, curns; in dom_node_prefix_write()
782 if (nodep == NULL) { in dom_node_prefix_write()
791 if (nsnode == NULL) { in dom_node_prefix_write()
793 if (nsnode == NULL) { in dom_node_prefix_write()
806 if (nsnode && nodep->ns != NULL && !xmlStrEqual(nodep->ns->prefix, (xmlChar *)prefix)) { in dom_node_prefix_write()
808 if (strURI == NULL || in dom_node_prefix_write()
813 ns = NULL; in dom_node_prefix_write()
816 while (curns != NULL) { in dom_node_prefix_write()
823 if (ns == NULL) { in dom_node_prefix_write()
828 if (ns == NULL) { in dom_node_prefix_write()
862 if (nodep == NULL) { in dom_node_local_name_read()
892 if (nodep == NULL) { in dom_node_base_uri_read()
920 char *str = NULL; in dom_node_text_content_read()
924 if (nodep == NULL) { in dom_node_text_content_read()
933 if(str != NULL) { in dom_node_text_content_read()
957 if (prevsib == NULL) { in _php_dom_insert_fragment()
963 if (nextsib == NULL) { in _php_dom_insert_fragment()
971 while (node != NULL) { in _php_dom_insert_fragment()
975 if (node->_private != NULL) { in _php_dom_insert_fragment()
978 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL TSRMLS_CC); in _php_dom_insert_fragment()
987 fragment->children = NULL; in _php_dom_insert_fragment()
988 fragment->last = NULL; in _php_dom_insert_fragment()
1001 zval *id, *node, *ref = NULL; in PHP_FUNCTION()
1018 new_child = NULL; in PHP_FUNCTION()
1023 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1033 if (child->doc != parentp->doc && child->doc != NULL) { in PHP_FUNCTION()
1038 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
1039 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Document Fragment is empty"); in PHP_FUNCTION()
1043 if (child->doc == NULL && parentp->doc != NULL) { in PHP_FUNCTION()
1045 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL TSRMLS_CC); in PHP_FUNCTION()
1048 if (ref != NULL) { in PHP_FUNCTION()
1055 if (child->parent != NULL) { in PHP_FUNCTION()
1060 (refp->prev != NULL && refp->prev->type == XML_TEXT_NODE))) { in PHP_FUNCTION()
1061 if (child->doc == NULL) { in PHP_FUNCTION()
1069 if (new_child->prev != NULL) { in PHP_FUNCTION()
1072 if (new_child->parent != NULL) { in PHP_FUNCTION()
1081 if (child->ns == NULL) in PHP_FUNCTION()
1085 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1098 if (new_child == NULL) { in PHP_FUNCTION()
1102 if (child->parent != NULL){ in PHP_FUNCTION()
1105 …if (child->type == XML_TEXT_NODE && parentp->last != NULL && parentp->last->type == XML_TEXT_NODE)… in PHP_FUNCTION()
1107 if (child->doc == NULL) { in PHP_FUNCTION()
1111 if (parentp->children == NULL) { in PHP_FUNCTION()
1123 if (child->ns == NULL) in PHP_FUNCTION()
1127 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1137 …new_child = _php_dom_insert_fragment(parentp, parentp->last, NULL, child, intern, childobj TSRMLS_… in PHP_FUNCTION()
1139 if (new_child == NULL) { in PHP_FUNCTION()
1144 if (NULL == new_child) { in PHP_FUNCTION()
1145 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't add newnode as the previous sibling of refno… in PHP_FUNCTION()
1190 (newchild->parent != NULL && dom_node_is_read_only(newchild->parent) == SUCCESS)) { in PHP_FUNCTION()
1195 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in PHP_FUNCTION()
1227 if (newchild->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1230 php_libxml_increment_doc_ref((php_libxml_node_object *)newchildobj, NULL TSRMLS_CC); in PHP_FUNCTION()
1270 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1302 xmlNodePtr child, nodep, new_child = NULL; in PHP_FUNCTION()
1321 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1331 if (!(child->doc == NULL || child->doc == nodep->doc)) { in PHP_FUNCTION()
1336 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
1337 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Document Fragment is empty"); in PHP_FUNCTION()
1341 if (child->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1343 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL TSRMLS_CC); in PHP_FUNCTION()
1346 if (child->parent != NULL){ in PHP_FUNCTION()
1350 if (child->type == XML_TEXT_NODE && nodep->last != NULL && nodep->last->type == XML_TEXT_NODE) { in PHP_FUNCTION()
1352 if (child->doc == NULL) { in PHP_FUNCTION()
1356 if (nodep->children == NULL) { in PHP_FUNCTION()
1368 if (child->ns == NULL) in PHP_FUNCTION()
1372 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1379 new_child = _php_dom_insert_fragment(nodep, nodep->last, NULL, child, intern, childobj TSRMLS_CC); in PHP_FUNCTION()
1382 if (new_child == NULL) { in PHP_FUNCTION()
1384 if (new_child == NULL) { in PHP_FUNCTION()
1385 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't append node"); in PHP_FUNCTION()
1451 if (n->nsDef != NULL) { in PHP_FUNCTION()
1454 if (n->ns != NULL) { in PHP_FUNCTION()
1457 if (ns == NULL) { in PHP_FUNCTION()
1459 if (ns != NULL) { in PHP_FUNCTION()
1462 while (root->parent != NULL) { in PHP_FUNCTION()
1471 if (n->properties != NULL) { in PHP_FUNCTION()
1478 intern = NULL; in PHP_FUNCTION()
1598 xmlNodePtr nodep, lookupp = NULL; in PHP_FUNCTION()
1630 if (lookupp != NULL && (nsptr = xmlSearchNsByHref(lookupp->doc, lookupp, uri))) { in PHP_FUNCTION()
1631 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
1664 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_FUNCTION()
1685 char *prefix=NULL; in PHP_FUNCTION()
1694 if (nodep == NULL) { in PHP_FUNCTION()
1700 if (nsptr && nsptr->href != NULL) { in PHP_FUNCTION()
1751 zval *xpath_array=NULL, *ns_prefixes=NULL; in dom_canonicalization()
1754 xmlNodeSetPtr nodeset = NULL; in dom_canonicalization()
1757 xmlChar **inclusive_ns_prefixes = NULL; in dom_canonicalization()
1758 char *file = NULL; in dom_canonicalization()
1761 xmlXPathContextPtr ctxp=NULL; in dom_canonicalization()
1762 xmlXPathObjectPtr xpathobjp=NULL; in dom_canonicalization()
1783 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Node must be associated with a document"); in dom_canonicalization()
1787 if (xpath_array == NULL) { in dom_canonicalization()
1792 ctxp->node = NULL; in dom_canonicalization()
1800 php_error_docref(NULL TSRMLS_CC, E_WARNING, "XPath query did not return a nodeset."); in dom_canonicalization()
1814 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "'query' missing from xpath array or is not a string"); in dom_canonicalization()
1831 &prefix, &prefix_key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) { in dom_canonicalization()
1840 ctxp->node = NULL; in dom_canonicalization()
1848 php_error_docref(NULL TSRMLS_CC, E_WARNING, "XPath query did not return a nodeset."); in dom_canonicalization()
1853 if (ns_prefixes != NULL) { in dom_canonicalization()
1866 inclusive_ns_prefixes[nscount] = NULL; in dom_canonicalization()
1868 php_error_docref(NULL TSRMLS_CC, E_NOTICE, in dom_canonicalization()
1874 buf = xmlOutputBufferCreateFilename(file, NULL, 0); in dom_canonicalization()
1876 buf = xmlAllocOutputBuffer(NULL); in dom_canonicalization()
1879 if (buf != NULL) { in dom_canonicalization()
1884 if (inclusive_ns_prefixes != NULL) { in dom_canonicalization()
1887 if (xpathobjp != NULL) { in dom_canonicalization()
1890 if (ctxp != NULL) { in dom_canonicalization()
1894 if (buf == NULL || ret < 0) { in dom_canonicalization()
1954 if (value == NULL) { in PHP_METHOD()