Lines Matching refs:NULL

41 zend_class_entry *sxe_class_entry = NULL;
84 php_libxml_increment_node_ptr((php_libxml_node_object *)subnode, node, NULL TSRMLS_CC); in _node_as_zval()
106 __n = NULL; \
107 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Node no longer exists"); \
114 xmlNodePtr retnode = NULL; in php_sxe_get_first_node()
131 if (name == NULL && (node->ns == NULL || node->ns->prefix == NULL)) { in match_ns()
154 return NULL; in sxe_get_element_by_offset()
192 return NULL; in sxe_find_element_by_name()
199 xmlNodePtr retnode = NULL; in sxe_get_element_by_name()
214 return NULL; in sxe_get_element_by_name()
238 *name = NULL; in sxe_get_element_by_name()
242 return NULL; in sxe_get_element_by_name()
254 xmlAttrPtr attr = NULL; in sxe_prop_dim_read()
267 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_read()
268 return NULL; in sxe_prop_dim_read()
270 name = NULL; in sxe_prop_dim_read()
288 test = sxe->iter.name != NULL; in sxe_prop_dim_read()
291 attr = node ? node->properties : NULL; in sxe_prop_dim_read()
296 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_read()
297 return NULL; in sxe_prop_dim_read()
311 …_node_as_zval(sxe, (xmlNodePtr) attr, return_value, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->… in sxe_prop_dim_read()
321 …_node_as_zval(sxe, (xmlNodePtr) attr, return_value, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->… in sxe_prop_dim_read()
332 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, node, NULL TSRMLS_CC); in sxe_prop_dim_read()
343 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %ld when only 0 such ele… in sxe_prop_dim_read()
348 node = NULL; in sxe_prop_dim_read()
351 …_node_as_zval(sxe, node, return_value, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix… in sxe_prop_dim_read()
354 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %ld when only %ld such e… in sxe_prop_dim_read()
356 node = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, NULL); in sxe_prop_dim_read()
357 …_node_as_zval(sxe, node, return_value, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix… in sxe_prop_dim_read()
444 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "It is not possible to assign complex types to nodes"); in change_node_zval()
456 xmlNodePtr newnode = NULL; in sxe_prop_dim_write()
459 xmlAttrPtr attr = NULL; in sxe_prop_dim_write()
480 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_write()
488 php_trim(Z_STRVAL(trim_zv), Z_STRLEN(trim_zv), NULL, 0, &tmp_zv, 3 TSRMLS_CC); in sxe_prop_dim_write()
494 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot write or create unnamed %s", attribs ? "attrib… in sxe_prop_dim_write()
509 test = sxe->iter.name != NULL; in sxe_prop_dim_write()
513 attr = node ? node->properties : NULL; in sxe_prop_dim_write()
521 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_write()
525 node = xmlNewChild(mynode, mynode->ns, sxe->iter.name, NULL); in sxe_prop_dim_write()
594 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Cannot create duplicate attribute"); in sxe_prop_dim_write()
602 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %ld when only 0 such ele… in sxe_prop_dim_write()
639 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot assign to an array of nodes (duplicate subnode… in sxe_prop_dim_write()
644 …ewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
646 …ld(mynode, mynode->ns, (xmlChar *)Z_STRVAL_P(member), value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
650 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element %s number %ld when only %ld such e… in sxe_prop_dim_write()
653 …ewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
657 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot change attribute number %ld when only %d attri… in sxe_prop_dim_write()
660 …dePtr)xmlNewProp(node, (xmlChar *)Z_STRVAL_P(member), value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
685 sxe_prop_dim_write(object, member, value, 1, 0, NULL TSRMLS_CC); in sxe_property_write()
693 sxe_prop_dim_write(object, offset, value, 0, 1, NULL TSRMLS_CC); in sxe_dimension_write()
712 return NULL; in sxe_property_get_adr()
714 if (sxe_prop_dim_write(object, member, NULL, 1, 0, &node TSRMLS_CC) != SUCCESS) { in sxe_property_get_adr()
715 return NULL; in sxe_property_get_adr()
718 name = NULL; in sxe_property_get_adr()
740 xmlAttrPtr attr = NULL; in sxe_prop_dim_exists()
771 test = sxe->iter.name != NULL; in sxe_prop_dim_exists()
774 attr = node ? node->properties : NULL; in sxe_prop_dim_exists()
815 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_exists()
870 xmlAttrPtr attr = NULL; in sxe_prop_dim_delete()
901 test = sxe->iter.name != NULL; in sxe_prop_dim_delete()
904 attr = node ? node->properties : NULL; in sxe_prop_dim_delete()
942 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_delete()
1027 php_libxml_increment_node_ptr((php_libxml_node_object *)subnode, node, NULL TSRMLS_CC); in _get_base_node_value()
1044 zend_hash_next_index_insert(Z_ARRVAL_PP(data_ptr), &value, sizeof(zval *), NULL); in sxe_properties_add()
1050 zend_hash_next_index_insert(Z_ARRVAL_P(newptr), data_ptr, sizeof(zval *), NULL); in sxe_properties_add()
1051 zend_hash_next_index_insert(Z_ARRVAL_P(newptr), &value, sizeof(zval *), NULL); in sxe_properties_add()
1053 zend_hash_quick_update(rv, name, namelen, h, &newptr, sizeof(zval *), NULL); in sxe_properties_add()
1056 zend_hash_quick_update(rv, name, namelen, h, &value, sizeof(zval *), NULL); in sxe_properties_add()
1077 zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0); in sxe_get_prop_hash()
1087 return NULL; in sxe_get_prop_hash()
1090 zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0); in sxe_get_prop_hash()
1103 attr = node ? (xmlAttrPtr)node->properties : NULL; in sxe_get_prop_hash()
1104 zattr = NULL; in sxe_get_prop_hash()
1129 zend_hash_next_index_insert(rv, &value, sizeof(zval *), NULL); in sxe_get_prop_hash()
1130 node = NULL; in sxe_get_prop_hash()
1136 if (node->children != NULL || node->prev != NULL || node->next != NULL) { in sxe_get_prop_hash()
1145 zend_hash_next_index_insert(rv, &value, sizeof(zval *), NULL); in sxe_get_prop_hash()
1195 if (sxe1->node == NULL) { in sxe_objects_compare()
1218 xmlNsPtr *ns = NULL; in SXE_METHOD()
1237 …hp_libxml_node_object *)sxe, xmlDocGetRootElement((xmlDocPtr) sxe->document->ptr), NULL TSRMLS_CC); in SXE_METHOD()
1245 if (ns != NULL) { in SXE_METHOD()
1246 while (ns[nsnbr] != NULL) { in SXE_METHOD()
1255 if (ns != NULL) { in SXE_METHOD()
1257 sxe->xpath->namespaces = NULL; in SXE_METHOD()
1269 if (result != NULL) { in SXE_METHOD()
1280 _node_as_zval(sxe, nodeptr->parent, value, SXE_ITER_NONE, NULL, NULL, 0 TSRMLS_CC); in SXE_METHOD()
1282 …ER_ATTRLIST, (char*)nodeptr->name, nodeptr->ns ? (xmlChar *)nodeptr->ns->href : NULL, 0 TSRMLS_CC); in SXE_METHOD()
1284 _node_as_zval(sxe, nodeptr, value, SXE_ITER_NONE, NULL, NULL, 0 TSRMLS_CC); in SXE_METHOD()
1356 outbuf = xmlOutputBufferCreateFilename(filename, NULL, 0); in SXE_METHOD()
1358 if (outbuf == NULL) { in SXE_METHOD()
1362 xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, NULL); in SXE_METHOD()
1382 outbuf = xmlAllocOutputBuffer(NULL); in SXE_METHOD()
1384 if (outbuf == NULL) { in SXE_METHOD()
1475 while (ns != NULL) { in sxe_add_registered_namespaces()
1514 char *nsprefix = NULL; in SXE_METHOD()
1532 …_node_as_zval(sxe, node, return_value, SXE_ITER_CHILD, NULL, (xmlChar *)nsprefix, isprefix TSRMLS_… in SXE_METHOD()
1563 char *nsprefix = NULL; in SXE_METHOD()
1581 …_node_as_zval(sxe, node, return_value, SXE_ITER_ATTRLIST, NULL, (xmlChar *)nsprefix, isprefix TSRM… in SXE_METHOD()
1590 char *qname, *value = NULL, *nsuri = NULL; in SXE_METHOD()
1593 xmlNsPtr nsptr = NULL; in SXE_METHOD()
1594 xmlChar *localname, *prefix = NULL; in SXE_METHOD()
1602 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Element name is required"); in SXE_METHOD()
1610 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add element to attributes"); in SXE_METHOD()
1616 if (node == NULL) { in SXE_METHOD()
1617 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot add child. Parent is not a permanent member of… in SXE_METHOD()
1622 if (localname == NULL) { in SXE_METHOD()
1626 newnode = xmlNewChild(node, NULL, localname, (xmlChar *)value); in SXE_METHOD()
1628 if (nsuri != NULL) { in SXE_METHOD()
1630 newnode->ns = NULL; in SXE_METHOD()
1634 if (nsptr == NULL) { in SXE_METHOD()
1644 if (prefix != NULL) { in SXE_METHOD()
1655 char *qname, *value = NULL, *nsuri = NULL; in SXE_METHOD()
1658 xmlAttrPtr attrp = NULL; in SXE_METHOD()
1659 xmlNsPtr nsptr = NULL; in SXE_METHOD()
1660 xmlChar *localname, *prefix = NULL; in SXE_METHOD()
1668 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attribute name is required"); in SXE_METHOD()
1681 if (node == NULL) { in SXE_METHOD()
1682 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate parent Element"); in SXE_METHOD()
1687 if (localname == NULL) { in SXE_METHOD()
1689 if (prefix != NULL) { in SXE_METHOD()
1692 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attribute requires prefix for namespace"); in SXE_METHOD()
1699 if (attrp != NULL && attrp->type != XML_ATTRIBUTE_DECL) { in SXE_METHOD()
1701 if (prefix != NULL) { in SXE_METHOD()
1704 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attribute already exists"); in SXE_METHOD()
1708 if (nsuri != NULL) { in SXE_METHOD()
1710 if (nsptr == NULL) { in SXE_METHOD()
1718 if (prefix != NULL) { in SXE_METHOD()
1761 xmlChar *contents = NULL; in sxe_object_cast()
1769 node = php_sxe_get_first_node(sxe, NULL TSRMLS_CC); in sxe_object_cast()
1772 ZVAL_BOOL(writeobj, node != NULL || zend_hash_num_elements(prop_hash) > 0); in sxe_object_cast()
1779 node = php_sxe_get_first_node(sxe, NULL TSRMLS_CC); in sxe_object_cast()
1786 …hp_libxml_node_object *)sxe, xmlDocGetRootElement((xmlDocPtr) sxe->document->ptr), NULL TSRMLS_CC); in sxe_object_cast()
1836 sxe->iter.data = NULL; in php_sxe_count_elements_helper()
1919 NULL,
1925 NULL, /* zend_get_std_object_handlers()->get_method,*/
1926 NULL, /* zend_get_std_object_handlers()->call_method,*/
1927 NULL, /* zend_get_std_object_handlers()->get_constructor, */
1928 NULL, /* zend_get_std_object_handlers()->get_class_entry,*/
1929 NULL, /* zend_get_std_object_handlers()->get_class_name,*/
1944 xmlNodePtr nodep = NULL; in sxe_object_clone()
1945 xmlDocPtr docp = NULL; in sxe_object_clone()
1955 if (sxe->iter.name != NULL) { in sxe_object_clone()
1958 if (sxe->iter.nsprefix != NULL) { in sxe_object_clone()
1967 php_libxml_increment_node_ptr((php_libxml_node_object *)clone, nodep, NULL TSRMLS_CC); in sxe_object_clone()
1985 sxe->iter.data = NULL; in sxe_object_dtor()
1990 sxe->iter.name = NULL; in sxe_object_dtor()
1994 sxe->iter.nsprefix = NULL; in sxe_object_dtor()
1998 sxe->tmp = NULL; in sxe_object_dtor()
2051 intern->iter.nsprefix = NULL; in php_sxe_object_new()
2052 intern->iter.name = NULL; in php_sxe_object_new()
2053 intern->fptr_count = NULL; in php_sxe_object_new()
2059 zend_hash_init(intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0); in php_sxe_object_new()
2062 intern->zo.guards = NULL; in php_sxe_object_new()
2077 intern->fptr_count = NULL; in php_sxe_object_new()
2119 char *ns = NULL; in PHP_FUNCTION()
2129 docp = xmlReadFile(filename, NULL, options); in PHP_FUNCTION()
2139 sxe->iter.nsprefix = ns_len ? xmlStrdup((xmlChar *)ns) : NULL; in PHP_FUNCTION()
2142 …php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL TSRM… in PHP_FUNCTION()
2157 char *ns = NULL; in PHP_FUNCTION()
2167 docp = xmlReadMemory(data, data_len, NULL, NULL, options); in PHP_FUNCTION()
2177 sxe->iter.nsprefix = ns_len ? xmlStrdup((xmlChar *)ns) : NULL; in PHP_FUNCTION()
2180 …php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL TSRM… in PHP_FUNCTION()
2192 char *data, *ns = NULL; in SXE_METHOD()
2199 zend_replace_error_handling(EH_THROW, NULL, &error_handling TSRMLS_CC); in SXE_METHOD()
2207 …docp = is_url ? xmlReadFile(data, NULL, options) : xmlReadMemory(data, data_len, NULL, NULL, optio… in SXE_METHOD()
2210 ((php_libxml_node_object *)sxe)->document = NULL; in SXE_METHOD()
2215 sxe->iter.nsprefix = ns_len ? xmlStrdup((xmlChar *)ns) : NULL; in SXE_METHOD()
2218 …php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL TSRM… in SXE_METHOD()
2256 _node_as_zval(sxe, node, sxe->iter.data, SXE_ITER_NONE, NULL, prefix, isprefix TSRMLS_CC); in php_sxe_iterator_fetch()
2269 sxe->iter.data = NULL; in php_sxe_reset_iterator()
2286 return NULL; in php_sxe_reset_iterator()
2340 xmlNodePtr curnode = NULL; in php_sxe_iterator_current_key()
2348 if (intern != NULL && intern->node != NULL) { in php_sxe_iterator_current_key()
2365 xmlNodePtr node = NULL; in php_sxe_move_forward_iterator()
2372 sxe->iter.data = NULL; in php_sxe_move_forward_iterator()
2417 xmlNodePtr nodep = NULL; in PHP_FUNCTION()
2429 if (nodep->doc == NULL) { in PHP_FUNCTION()
2430 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Imported Node must have associated Document"); in PHP_FUNCTION()
2445 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, nodep, NULL TSRMLS_CC); in PHP_FUNCTION()
2450 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Nodetype to import"); in PHP_FUNCTION()
2534 STANDARD_MODULE_HEADER_EX, NULL,
2540 NULL,
2541 NULL,
2604 sxe_class_entry = NULL; in PHP_MSHUTDOWN_FUNCTION()