Lines Matching refs:NULL

42 	char *str = NULL;  in dom_node_node_name_read()
43 xmlChar *qname = NULL; in dom_node_node_name_read()
47 if (nodep == NULL) { in dom_node_node_name_read()
56 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
67 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
103 if (str != NULL) { in dom_node_node_name_read()
109 if (qname != NULL) { in dom_node_node_name_read()
127 char *str = NULL; in dom_node_node_value_read()
129 if (nodep == NULL) { in dom_node_node_value_read()
148 str = NULL; in dom_node_node_value_read()
152 if(str != NULL) { in dom_node_node_value_read()
168 if (nodep == NULL) { in dom_node_node_value_write()
185 nodep->children = NULL; in dom_node_node_value_write()
215 if (nodep == NULL) { in dom_node_node_type_read()
243 if (nodep == NULL) { in dom_node_parent_node_read()
270 if (nodep == NULL) { in dom_node_child_nodes_read()
277 dom_namednode_iter(obj, XML_ELEMENT_NODE, intern, NULL, NULL, NULL); in dom_node_child_nodes_read()
290 xmlNode *nodep, *first = NULL; in dom_node_first_child_read()
294 if (nodep == NULL) { in dom_node_first_child_read()
321 xmlNode *nodep, *last = NULL; in dom_node_last_child_read()
325 if (nodep == NULL) { in dom_node_last_child_read()
356 if (nodep == NULL) { in dom_node_previous_sibling_read()
384 if (nodep == NULL) { in dom_node_next_sibling_read()
412 if (nodep == NULL) { in dom_node_previous_element_sibling_read()
445 if (nodep == NULL) { in dom_node_next_element_sibling_read()
452 while (nextsib != NULL && nextsib->type != XML_ELEMENT_NODE) { in dom_node_next_element_sibling_read()
477 if (nodep == NULL) { in dom_node_attributes_read()
485 dom_namednode_iter(obj, XML_ATTRIBUTE_NODE, intern, NULL, NULL, NULL); in dom_node_attributes_read()
505 if (nodep == NULL) { in dom_node_owner_document_read()
534 char *str = NULL; in dom_node_namespace_uri_read()
536 if (nodep == NULL) { in dom_node_namespace_uri_read()
545 if (nodep->ns != NULL) { in dom_node_namespace_uri_read()
550 str = NULL; in dom_node_namespace_uri_read()
554 if (str != NULL) { in dom_node_namespace_uri_read()
574 char *str = NULL; in dom_node_prefix_read()
576 if (nodep == NULL) { in dom_node_prefix_read()
586 if (ns != NULL && ns->prefix) { in dom_node_prefix_read()
591 str = NULL; in dom_node_prefix_read()
595 if (str == NULL) { in dom_node_prefix_read()
607 xmlNode *nodep, *nsnode = NULL; in dom_node_prefix_write()
608 xmlNsPtr ns = NULL, curns; in dom_node_prefix_write()
614 if (nodep == NULL) { in dom_node_prefix_write()
624 if (nsnode == NULL) { in dom_node_prefix_write()
626 if (nsnode == NULL) { in dom_node_prefix_write()
636 if (nsnode && nodep->ns != NULL && !xmlStrEqual(nodep->ns->prefix, (xmlChar *)prefix)) { in dom_node_prefix_write()
638 if (strURI == NULL || in dom_node_prefix_write()
643 ns = NULL; in dom_node_prefix_write()
646 while (curns != NULL) { in dom_node_prefix_write()
653 if (ns == NULL) { in dom_node_prefix_write()
658 if (ns == NULL) { in dom_node_prefix_write()
686 if (nodep == NULL) { in dom_node_local_name_read()
712 if (nodep == NULL) { in dom_node_base_uri_read()
738 char *str = NULL; in dom_node_text_content_read()
740 if (nodep == NULL) { in dom_node_text_content_read()
747 if (str != NULL) { in dom_node_text_content_read()
762 if (nodep == NULL) { in dom_node_text_content_write()
785 nodep->children = NULL; in dom_node_text_content_write()
808 if (prevsib == NULL) { in _php_dom_insert_fragment()
814 if (nextsib == NULL) { in _php_dom_insert_fragment()
822 while (node != NULL) { in _php_dom_insert_fragment()
826 if (node->_private != NULL) { in _php_dom_insert_fragment()
829 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL); in _php_dom_insert_fragment()
838 fragment->children = NULL; in _php_dom_insert_fragment()
839 fragment->last = NULL; in _php_dom_insert_fragment()
849 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in dom_node_check_legacy_insertion_validity()
859 if (child->doc != parentp->doc && child->doc != NULL) { in dom_node_check_legacy_insertion_validity()
864 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in dom_node_check_legacy_insertion_validity()
866 php_error_docref(NULL, E_WARNING, "Document Fragment is empty"); in dom_node_check_legacy_insertion_validity()
884 zval *id, *node, *ref = NULL; in PHP_METHOD()
902 new_child = NULL; in PHP_METHOD()
910 if (child->doc == NULL && parentp->doc != NULL) { in PHP_METHOD()
912 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL); in PHP_METHOD()
915 if (ref != NULL) { in PHP_METHOD()
922 if (child->parent != NULL) { in PHP_METHOD()
927 (refp->prev != NULL && refp->prev->type == XML_TEXT_NODE))) { in PHP_METHOD()
928 if (child->doc == NULL) { in PHP_METHOD()
936 if (new_child->prev != NULL) { in PHP_METHOD()
939 if (new_child->parent != NULL) { in PHP_METHOD()
948 if (child->ns == NULL) in PHP_METHOD()
952 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_METHOD()
962 if (UNEXPECTED(NULL == new_child)) { in PHP_METHOD()
971 if (UNEXPECTED(NULL == new_child)) { in PHP_METHOD()
977 if (child->parent != NULL){ in PHP_METHOD()
980 …if (child->type == XML_TEXT_NODE && parentp->last != NULL && parentp->last->type == XML_TEXT_NODE)… in PHP_METHOD()
982 if (child->doc == NULL) { in PHP_METHOD()
986 if (parentp->children == NULL) { in PHP_METHOD()
998 if (child->ns == NULL) in PHP_METHOD()
1002 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_METHOD()
1012 if (UNEXPECTED(NULL == new_child)) { in PHP_METHOD()
1017 new_child = _php_dom_insert_fragment(parentp, parentp->last, NULL, child, intern, childobj); in PHP_METHOD()
1021 if (UNEXPECTED(NULL == new_child)) { in PHP_METHOD()
1031 zend_throw_error(NULL, "Cannot add newnode as the previous sibling of refnode"); in PHP_METHOD()
1070 (newchild->parent != NULL && dom_node_is_read_only(newchild->parent) == SUCCESS)) { in PHP_METHOD()
1075 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in PHP_METHOD()
1106 if (newchild->doc == NULL && nodep->doc != NULL) { in PHP_METHOD()
1109 php_libxml_increment_doc_ref((php_libxml_node_object *)newchildobj, NULL); in PHP_METHOD()
1148 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_METHOD()
1169 xmlNodePtr child, nodep, new_child = NULL; in PHP_METHOD()
1192 if (child->doc == NULL && nodep->doc != NULL) { in PHP_METHOD()
1194 php_libxml_increment_doc_ref((php_libxml_node_object *)childobj, NULL); in PHP_METHOD()
1197 if (child->parent != NULL){ in PHP_METHOD()
1201 if (child->type == XML_TEXT_NODE && nodep->last != NULL && nodep->last->type == XML_TEXT_NODE) { in PHP_METHOD()
1203 if (child->doc == NULL) { in PHP_METHOD()
1207 if (nodep->children == NULL) { in PHP_METHOD()
1219 if (child->ns == NULL) in PHP_METHOD()
1223 if (lastattr != NULL && lastattr->type != XML_ATTRIBUTE_DECL) { in PHP_METHOD()
1230 if (UNEXPECTED(new_child == NULL)) { in PHP_METHOD()
1235 new_child = _php_dom_insert_fragment(nodep, nodep->last, NULL, child, intern, childobj); in PHP_METHOD()
1239 if (UNEXPECTED(new_child == NULL)) { in PHP_METHOD()
1249 php_error_docref(NULL, E_WARNING, "Couldn't append node"); in PHP_METHOD()
1309 if (n->nsDef != NULL) { in PHP_METHOD()
1312 if (n->ns != NULL) { in PHP_METHOD()
1315 if (ns == NULL) { in PHP_METHOD()
1317 if (ns != NULL) { in PHP_METHOD()
1320 while (root->parent != NULL) { in PHP_METHOD()
1329 if (n->properties != NULL) { in PHP_METHOD()
1336 intern = NULL; in PHP_METHOD()
1438 xmlNodePtr nodep, lookupp = NULL; in PHP_METHOD()
1471 if (lookupp != NULL) { in PHP_METHOD()
1473 if (nsptr && nsptr->prefix != NULL) { in PHP_METHOD()
1506 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_METHOD()
1536 if (nodep == NULL) { in PHP_METHOD()
1542 if (nsptr && nsptr->href != NULL) { in PHP_METHOD()
1553 zval *xpath_array=NULL, *ns_prefixes=NULL; in dom_canonicalization()
1556 xmlNodeSetPtr nodeset = NULL; in dom_canonicalization()
1559 xmlChar **inclusive_ns_prefixes = NULL; in dom_canonicalization()
1560 char *file = NULL; in dom_canonicalization()
1564 xmlXPathContextPtr ctxp=NULL; in dom_canonicalization()
1565 xmlXPathObjectPtr xpathobjp=NULL; in dom_canonicalization()
1587 zend_throw_error(NULL, "Node must be associated with a document"); in dom_canonicalization()
1591 if (xpath_array == NULL) { in dom_canonicalization()
1596 ctxp->node = NULL; in dom_canonicalization()
1604 zend_throw_error(NULL, "XPath query did not return a nodeset"); in dom_canonicalization()
1646 ctxp->node = NULL; in dom_canonicalization()
1654 zend_throw_error(NULL, "XPath query did not return a nodeset"); in dom_canonicalization()
1659 if (ns_prefixes != NULL) { in dom_canonicalization()
1672 inclusive_ns_prefixes[nscount] = NULL; in dom_canonicalization()
1674 php_error_docref(NULL, E_NOTICE, in dom_canonicalization()
1680 buf = xmlOutputBufferCreateFilename(file, NULL, 0); in dom_canonicalization()
1682 buf = xmlAllocOutputBuffer(NULL); in dom_canonicalization()
1685 if (buf != NULL) { in dom_canonicalization()
1690 if (inclusive_ns_prefixes != NULL) { in dom_canonicalization()
1693 if (xpathobjp != NULL) { in dom_canonicalization()
1696 if (ctxp != NULL) { in dom_canonicalization()
1700 if (buf == NULL || ret < 0) { in dom_canonicalization()
1761 if (value == NULL) { in PHP_METHOD()
1803 …zend_throw_exception_ex(NULL, 0, "Serialization of '%s' is not allowed, unless serialization metho… in PHP_METHOD()
1813 …zend_throw_exception_ex(NULL, 0, "Unserialization of '%s' is not allowed, unless unserialization m… in PHP_METHOD()