Lines Matching refs:NULL

41 zend_class_entry *sxe_class_entry = NULL;
83 php_libxml_increment_node_ptr((php_libxml_node_object *)subnode, node, NULL); in _node_as_zval()
93 __n = NULL; \
94 php_error_docref(NULL, E_WARNING, "Node no longer exists"); \
101 xmlNodePtr retnode = NULL; in php_sxe_get_first_node()
118 if (name == NULL && (node->ns == NULL || node->ns->prefix == NULL)) { in match_ns()
141 return NULL; in sxe_get_element_by_offset()
179 return NULL; in sxe_find_element_by_name()
186 xmlNodePtr retnode = NULL; in sxe_get_element_by_name()
201 return NULL; in sxe_get_element_by_name()
225 *name = NULL; in sxe_get_element_by_name()
229 return NULL; in sxe_get_element_by_name()
240 xmlAttrPtr attr = NULL; in sxe_prop_dim_read()
250 php_error_docref(NULL, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_read()
251 return NULL; in sxe_prop_dim_read()
262 name = NULL; in sxe_prop_dim_read()
279 test = sxe->iter.name != NULL; in sxe_prop_dim_read()
282 attr = node ? node->properties : NULL; in sxe_prop_dim_read()
287 php_error_docref(NULL, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_read()
288 return NULL; in sxe_prop_dim_read()
301 …_node_as_zval(sxe, (xmlNodePtr) attr, rv, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.ispre… in sxe_prop_dim_read()
311 …_node_as_zval(sxe, (xmlNodePtr) attr, rv, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.ispre… in sxe_prop_dim_read()
322 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, node, NULL); in sxe_prop_dim_read()
333 …php_error_docref(NULL, E_WARNING, "Cannot add element %s number %pd when only 0 such elements exis… in sxe_prop_dim_read()
338 node = NULL; in sxe_prop_dim_read()
341 _node_as_zval(sxe, node, rv, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix); in sxe_prop_dim_read()
344 …php_error_docref(NULL, E_WARNING, "Cannot add element %s number %pd when only %pd such elements ex… in sxe_prop_dim_read()
346 node = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, NULL); in sxe_prop_dim_read()
347 _node_as_zval(sxe, node, rv, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix); in sxe_prop_dim_read()
435 php_error_docref(NULL, E_WARNING, "It is not possible to assign complex types to nodes"); in change_node_zval()
447 xmlNodePtr newnode = NULL; in sxe_prop_dim_write()
450 xmlAttrPtr attr = NULL; in sxe_prop_dim_write()
469 php_error_docref(NULL, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_write()
484 ZVAL_STR(&tmp_zv, php_trim(trim_str, NULL, 0, 3)); in sxe_prop_dim_write()
490 …php_error_docref(NULL, E_WARNING, "Cannot write or create unnamed %s", attribs ? "attribute" : "el… in sxe_prop_dim_write()
506 test = sxe->iter.name != NULL; in sxe_prop_dim_write()
510 attr = node ? node->properties : NULL; in sxe_prop_dim_write()
518 php_error_docref(NULL, E_ERROR, "Cannot create unnamed attribute"); in sxe_prop_dim_write()
522 node = xmlNewChild(mynode, mynode->ns, sxe->iter.name, NULL); in sxe_prop_dim_write()
591 php_error_docref(NULL, E_ERROR, "Cannot create duplicate attribute"); in sxe_prop_dim_write()
599 …php_error_docref(NULL, E_WARNING, "Cannot add element %s number %pd when only 0 such elements exis… in sxe_prop_dim_write()
636 …php_error_docref(NULL, E_WARNING, "Cannot assign to an array of nodes (duplicate subnodes or attr … in sxe_prop_dim_write()
641 …ewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
643 …ld(mynode, mynode->ns, (xmlChar *)Z_STRVAL_P(member), value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
647 …php_error_docref(NULL, E_WARNING, "Cannot add element %s number %pd when only %pd such elements ex… in sxe_prop_dim_write()
650 …ewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
654 …php_error_docref(NULL, E_WARNING, "Cannot change attribute number %pd when only %d attributes exis… in sxe_prop_dim_write()
657 …dePtr)xmlNewProp(node, (xmlChar *)Z_STRVAL_P(member), value ? (xmlChar *)Z_STRVAL_P(value) : NULL); in sxe_prop_dim_write()
679 sxe_prop_dim_write(object, member, value, 1, 0, NULL); in sxe_property_write()
687 sxe_prop_dim_write(object, offset, value, 0, 1, NULL); in sxe_dimension_write()
706 return NULL; in sxe_property_get_adr()
708 if (sxe_prop_dim_write(object, member, NULL, 1, 0, &node) != SUCCESS) { in sxe_property_get_adr()
709 return NULL; in sxe_property_get_adr()
712 name = NULL; in sxe_property_get_adr()
733 xmlAttrPtr attr = NULL; in sxe_prop_dim_exists()
762 test = sxe->iter.name != NULL; in sxe_prop_dim_exists()
765 attr = node ? node->properties : NULL; in sxe_prop_dim_exists()
806 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_exists()
852 xmlAttrPtr attr = NULL; in sxe_prop_dim_delete()
881 test = sxe->iter.name != NULL; in sxe_prop_dim_delete()
884 attr = node ? node->properties : NULL; in sxe_prop_dim_delete()
922 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_delete()
1005 php_libxml_increment_node_ptr((php_libxml_node_object *)subnode, node, NULL); in _get_base_node_value()
1020 if ((data_ptr = zend_hash_find(rv, key)) != NULL) { in sxe_properties_add()
1056 attr = node ? (xmlAttrPtr)node->properties : NULL; in sxe_prop_is_empty()
1084 if (node->children != NULL || node->prev != NULL || node->next != NULL) { in sxe_prop_is_empty()
1147 zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0); in sxe_get_prop_hash()
1153 zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0); in sxe_get_prop_hash()
1166 attr = node ? (xmlAttrPtr)node->properties : NULL; in sxe_get_prop_hash()
1191 node = NULL; in sxe_get_prop_hash()
1207 if (node->children != NULL || node->prev != NULL || node->next != NULL) { in sxe_get_prop_hash()
1263 *table = NULL; in sxe_get_gc()
1290 if (sxe1->node == NULL) { in sxe_objects_compare()
1313 xmlNsPtr *ns = NULL; in SXE_METHOD()
1332 …ode_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement((xmlDocPtr) sxe->document->ptr), NULL); in SXE_METHOD()
1343 if (ns != NULL) { in SXE_METHOD()
1344 while (ns[nsnbr] != NULL) { in SXE_METHOD()
1353 if (ns != NULL) { in SXE_METHOD()
1355 sxe->xpath->namespaces = NULL; in SXE_METHOD()
1367 if (result != NULL) { in SXE_METHOD()
1377 _node_as_zval(sxe, nodeptr->parent, &value, SXE_ITER_NONE, NULL, NULL, 0); in SXE_METHOD()
1379 …ue, SXE_ITER_ATTRLIST, (char*)nodeptr->name, nodeptr->ns ? (xmlChar *)nodeptr->ns->href : NULL, 0); in SXE_METHOD()
1381 _node_as_zval(sxe, nodeptr, &value, SXE_ITER_NONE, NULL, NULL, 0); in SXE_METHOD()
1453 outbuf = xmlOutputBufferCreateFilename(filename, NULL, 0); in SXE_METHOD()
1455 if (outbuf == NULL) { in SXE_METHOD()
1459 xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, NULL); in SXE_METHOD()
1485 outbuf = xmlAllocOutputBuffer(NULL); in SXE_METHOD()
1487 if (outbuf == NULL) { in SXE_METHOD()
1590 while (ns != NULL) { in sxe_add_registered_namespaces()
1624 if (node == NULL) { in SXE_METHOD()
1638 char *nsprefix = NULL; in SXE_METHOD()
1656 _node_as_zval(sxe, node, return_value, SXE_ITER_CHILD, NULL, (xmlChar *)nsprefix, isprefix); in SXE_METHOD()
1687 char *nsprefix = NULL; in SXE_METHOD()
1705 _node_as_zval(sxe, node, return_value, SXE_ITER_ATTRLIST, NULL, (xmlChar *)nsprefix, isprefix); in SXE_METHOD()
1714 char *qname, *value = NULL, *nsuri = NULL; in SXE_METHOD()
1717 xmlNsPtr nsptr = NULL; in SXE_METHOD()
1718 xmlChar *localname, *prefix = NULL; in SXE_METHOD()
1726 php_error_docref(NULL, E_WARNING, "Element name is required"); in SXE_METHOD()
1734 php_error_docref(NULL, E_WARNING, "Cannot add element to attributes"); in SXE_METHOD()
1740 if (node == NULL) { in SXE_METHOD()
1741 …php_error_docref(NULL, E_WARNING, "Cannot add child. Parent is not a permanent member of the XML t… in SXE_METHOD()
1746 if (localname == NULL) { in SXE_METHOD()
1750 newnode = xmlNewChild(node, NULL, localname, (xmlChar *)value); in SXE_METHOD()
1752 if (nsuri != NULL) { in SXE_METHOD()
1754 newnode->ns = NULL; in SXE_METHOD()
1758 if (nsptr == NULL) { in SXE_METHOD()
1768 if (prefix != NULL) { in SXE_METHOD()
1779 char *qname, *value = NULL, *nsuri = NULL; in SXE_METHOD()
1782 xmlAttrPtr attrp = NULL; in SXE_METHOD()
1783 xmlNsPtr nsptr = NULL; in SXE_METHOD()
1784 xmlChar *localname, *prefix = NULL; in SXE_METHOD()
1792 php_error_docref(NULL, E_WARNING, "Attribute name is required"); in SXE_METHOD()
1805 if (node == NULL) { in SXE_METHOD()
1806 php_error_docref(NULL, E_WARNING, "Unable to locate parent Element"); in SXE_METHOD()
1811 if (localname == NULL) { in SXE_METHOD()
1813 if (prefix != NULL) { in SXE_METHOD()
1816 php_error_docref(NULL, E_WARNING, "Attribute requires prefix for namespace"); in SXE_METHOD()
1823 if (attrp != NULL && attrp->type != XML_ATTRIBUTE_DECL) { in SXE_METHOD()
1825 if (prefix != NULL) { in SXE_METHOD()
1828 php_error_docref(NULL, E_WARNING, "Attribute already exists"); in SXE_METHOD()
1832 if (nsuri != NULL) { in SXE_METHOD()
1834 if (nsptr == NULL) { in SXE_METHOD()
1842 if (prefix != NULL) { in SXE_METHOD()
1883 xmlChar *contents = NULL; in sxe_object_cast_ex()
1890 node = php_sxe_get_first_node(sxe, NULL); in sxe_object_cast_ex()
1900 node = php_sxe_get_first_node(sxe, NULL); in sxe_object_cast_ex()
1907 …ode_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement((xmlDocPtr) sxe->document->ptr), NULL); in sxe_object_cast_ex()
2041 NULL,
2047 NULL, /* zend_get_std_object_handlers()->get_method,*/
2048 NULL, /* zend_get_std_object_handlers()->call_method,*/
2049 NULL, /* zend_get_std_object_handlers()->get_constructor, */
2050 NULL, /* zend_get_std_object_handlers()->get_class_name,*/
2055 NULL,
2067 xmlNodePtr nodep = NULL; in sxe_object_clone()
2068 xmlDocPtr docp = NULL; in sxe_object_clone()
2078 if (sxe->iter.name != NULL) { in sxe_object_clone()
2081 if (sxe->iter.nsprefix != NULL) { in sxe_object_clone()
2090 php_libxml_increment_node_ptr((php_libxml_node_object *)clone, nodep, NULL); in sxe_object_clone()
2112 sxe->iter.name = NULL; in sxe_object_dtor()
2116 sxe->iter.nsprefix = NULL; in sxe_object_dtor()
2152 zend_function *fptr_count = NULL; in php_sxe_find_fptr_count()
2167 fptr_count = NULL; in php_sxe_find_fptr_count()
2184 intern->iter.nsprefix = NULL; in php_sxe_object_new()
2185 intern->iter.name = NULL; in php_sxe_object_new()
2216 char *ns = NULL; in PHP_FUNCTION()
2228 php_error_docref(NULL, E_WARNING, "Invalid options"); in PHP_FUNCTION()
2232 docp = xmlReadFile(filename, NULL, (int)options); in PHP_FUNCTION()
2240 fptr_count = NULL; in PHP_FUNCTION()
2245 sxe->iter.nsprefix = ns_len ? (xmlChar*)estrdup(ns) : NULL; in PHP_FUNCTION()
2248 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL); in PHP_FUNCTION()
2262 char *ns = NULL; in PHP_FUNCTION()
2274 php_error_docref(NULL, E_WARNING, "Data is too long"); in PHP_FUNCTION()
2278 php_error_docref(NULL, E_WARNING, "Namespace is too long"); in PHP_FUNCTION()
2282 php_error_docref(NULL, E_WARNING, "Invalid options"); in PHP_FUNCTION()
2286 docp = xmlReadMemory(data, (int)data_len, NULL, NULL, (int)options); in PHP_FUNCTION()
2294 fptr_count = NULL; in PHP_FUNCTION()
2299 sxe->iter.nsprefix = ns_len ? (xmlChar*)estrdup(ns) : NULL; in PHP_FUNCTION()
2302 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL); in PHP_FUNCTION()
2313 char *data, *ns = NULL; in SXE_METHOD()
2336 …docp = is_url ? xmlReadFile(data, NULL, (int)options) : xmlReadMemory(data, (int)data_len, NULL, N… in SXE_METHOD()
2339 ((php_libxml_node_object *)sxe)->document = NULL; in SXE_METHOD()
2344 sxe->iter.nsprefix = ns_len ? (xmlChar*)estrdup(ns) : NULL; in SXE_METHOD()
2347 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL); in SXE_METHOD()
2407 _node_as_zval(sxe, node, &sxe->iter.data, SXE_ITER_NONE, NULL, prefix, isprefix); in php_sxe_iterator_fetch()
2437 return NULL; in php_sxe_reset_iterator()
2492 xmlNodePtr curnode = NULL; in php_sxe_iterator_current_key()
2493 if (intern != NULL && intern->node != NULL) { in php_sxe_iterator_current_key()
2507 xmlNodePtr node = NULL; in php_sxe_move_forward_iterator()
2559 xmlNodePtr nodep = NULL; in PHP_FUNCTION()
2572 if (nodep->doc == NULL) { in PHP_FUNCTION()
2573 php_error_docref(NULL, E_WARNING, "Imported Node must have associated Document"); in PHP_FUNCTION()
2584 fptr_count = NULL; in PHP_FUNCTION()
2591 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, nodep, NULL); in PHP_FUNCTION()
2595 php_error_docref(NULL, E_WARNING, "Invalid Nodetype to import"); in PHP_FUNCTION()
2684 STANDARD_MODULE_HEADER_EX, NULL,
2690 NULL,
2691 NULL,
2757 sxe_class_entry = NULL; in PHP_MSHUTDOWN_FUNCTION()