Lines Matching refs:member
208 static zval *sxe_prop_dim_read(zend_object *object, zval *member, bool elements, bool attribs, int … in sxe_prop_dim_read() argument
220 if (!member) { in sxe_prop_dim_read()
228 ZVAL_DEREF(member); in sxe_prop_dim_read()
229 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_read()
237 if (Z_TYPE_P(member) != IS_STRING) { in sxe_prop_dim_read()
238 zend_string *str = zval_try_get_string_func(member); in sxe_prop_dim_read()
243 member = &tmp_zv; in sxe_prop_dim_read()
245 name = Z_STRVAL_P(member); in sxe_prop_dim_read()
261 if (!member && node && node->parent && in sxe_prop_dim_read()
273 if (Z_TYPE_P(member) != IS_LONG || sxe->iter.type == SXE_ITER_ATTRLIST) { in sxe_prop_dim_read()
274 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_read()
275 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_read()
277 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_read()
301 if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_read()
309 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_read()
310 …ment %s number " ZEND_LONG_FMT " when only 0 such elements exist", mynode->name, Z_LVAL_P(member)); in sxe_prop_dim_read()
312 } else if (member) { in sxe_prop_dim_read()
313 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, &cnt); in sxe_prop_dim_read()
320 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_read()
321 …_LONG_FMT " when only " ZEND_LONG_FMT " such elements exist", mynode->name, Z_LVAL_P(member), cnt); in sxe_prop_dim_read()
335 if (member == &tmp_zv) { in sxe_prop_dim_read()
350 zval member; in sxe_property_read() local
351 ZVAL_STR(&member, name); in sxe_property_read()
352 return sxe_prop_dim_read(object, &member, 1, 0, type, rv); in sxe_property_read()
376 static zval *sxe_prop_dim_write(zend_object *object, zval *member, zval *value, bool elements, bool… in sxe_prop_dim_write() argument
395 if (!member) { in sxe_prop_dim_write()
406 ZVAL_DEREF(member); in sxe_prop_dim_write()
407 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
414 if (Z_TYPE_P(member) != IS_STRING) { in sxe_prop_dim_write()
415 trim_str = zval_try_get_string_func(member); in sxe_prop_dim_write()
422 member = &tmp_zv; in sxe_prop_dim_write()
425 if (!Z_STRLEN_P(member)) { in sxe_prop_dim_write()
427 if (member == &tmp_zv) { in sxe_prop_dim_write()
448 if (!member && node && node->parent && in sxe_prop_dim_write()
488 if (member == &tmp_zv) { in sxe_prop_dim_write()
498 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
499 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_write()
501 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_write()
512 …->name, sxe->iter.name)) && !xmlStrcmp(attr->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe,… in sxe_prop_dim_write()
524 if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
536 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_write()
537 …ment %s number " ZEND_LONG_FMT " when only 0 such elements exist", mynode->name, Z_LVAL_P(member)); in sxe_prop_dim_write()
540 } else if (member) { in sxe_prop_dim_write()
541 newnode = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, &cnt); in sxe_prop_dim_write()
551 …if (!xmlStrcmp(node->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe, node, sxe->iter.nsprefi… in sxe_prop_dim_write()
578 if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
581 …newnode = xmlNewTextChild(mynode, mynode->ns, (xmlChar *)Z_STRVAL_P(member), value_str ? (xmlChar … in sxe_prop_dim_write()
583 } else if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
584 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_write()
585 …_LONG_FMT " when only " ZEND_LONG_FMT " such elements exist", mynode->name, Z_LVAL_P(member), cnt); in sxe_prop_dim_write()
590 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
591 …ange attribute number " ZEND_LONG_FMT " when only %d attributes exist", Z_LVAL_P(member), nodendx); in sxe_prop_dim_write()
593 …newnode = (xmlNodePtr)xmlNewProp(node, (xmlChar *)Z_STRVAL_P(member), value_str ? (xmlChar *)ZSTR_… in sxe_prop_dim_write()
598 if (member == &tmp_zv) { in sxe_prop_dim_write()
614 zval member; in sxe_property_write() local
615 ZVAL_STR(&member, name); in sxe_property_write()
616 zval *retval = sxe_prop_dim_write(object, &member, value, 1, 0, NULL); in sxe_property_write()
635 zval member; in sxe_property_get_adr() local
644 ZVAL_STR(&member, zname); in sxe_property_get_adr()
645 if (sxe_prop_dim_write(object, &member, NULL, 1, 0, &node) == &EG(error_zval)) { in sxe_property_get_adr()
664 static int sxe_prop_dim_exists(zend_object *object, zval *member, int check_empty, bool elements, b… in sxe_prop_dim_exists() argument
673 if (Z_TYPE_P(member) != IS_STRING && Z_TYPE_P(member) != IS_LONG) { in sxe_prop_dim_exists()
674 zend_string *str = zval_try_get_string_func(member); in sxe_prop_dim_exists()
679 member = &tmp_zv; in sxe_prop_dim_exists()
686 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_exists()
710 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_exists()
713 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_exists()
715 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_exists()
725 …->name, sxe->iter.name)) && !xmlStrcmp(attr->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe,… in sxe_prop_dim_exists()
741 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_exists()
745 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_exists()
747 node = sxe_find_element_by_name(sxe, node->children, (xmlChar *)Z_STRVAL_P(member)); in sxe_prop_dim_exists()
760 if (member == &tmp_zv) { in sxe_prop_dim_exists()
771 zval member; in sxe_property_exists() local
772 ZVAL_STR(&member, name); in sxe_property_exists()
773 return sxe_prop_dim_exists(object, &member, check_empty, 1, 0); in sxe_property_exists()
778 static int sxe_dimension_exists(zend_object *object, zval *member, int check_empty) in sxe_dimension_exists() argument
780 return sxe_prop_dim_exists(object, member, check_empty, 0, 1); in sxe_dimension_exists()
785 static void sxe_prop_dim_delete(zend_object *object, zval *member, bool elements, bool attribs) in sxe_prop_dim_delete() argument
795 if (Z_TYPE_P(member) != IS_STRING && Z_TYPE_P(member) != IS_LONG) { in sxe_prop_dim_delete()
796 zend_string *str = zval_try_get_string_func(member); in sxe_prop_dim_delete()
801 member = &tmp_zv; in sxe_prop_dim_delete()
808 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_delete()
832 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_delete()
835 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_delete()
837 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_delete()
849 …->name, sxe->iter.name)) && !xmlStrcmp(attr->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe,… in sxe_prop_dim_delete()
860 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_delete()
864 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_delete()
876 …if (!xmlStrcmp(node->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe, node, sxe->iter.nsprefi… in sxe_prop_dim_delete()
888 if (member == &tmp_zv) { in sxe_prop_dim_delete()
897 zval member; in sxe_property_delete() local
898 ZVAL_STR(&member, name); in sxe_property_delete()
899 sxe_prop_dim_delete(object, &member, 1, 0); in sxe_property_delete()