Lines Matching refs:member

195 static zval *sxe_prop_dim_read(zend_object *object, zval *member, bool elements, bool attribs, int …  in sxe_prop_dim_read()  argument
207 if (!member) { in sxe_prop_dim_read()
215 ZVAL_DEREF(member); in sxe_prop_dim_read()
216 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_read()
224 if (Z_TYPE_P(member) != IS_STRING) { in sxe_prop_dim_read()
225 zend_string *str = zval_try_get_string_func(member); in sxe_prop_dim_read()
230 member = &tmp_zv; in sxe_prop_dim_read()
232 name = Z_STRVAL_P(member); in sxe_prop_dim_read()
248 if (!member && node && node->parent && in sxe_prop_dim_read()
260 if (Z_TYPE_P(member) != IS_LONG || sxe->iter.type == SXE_ITER_ATTRLIST) { in sxe_prop_dim_read()
261 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_read()
262 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_read()
264 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_read()
288 if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_read()
296 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_read()
297 …ment %s number " ZEND_LONG_FMT " when only 0 such elements exist", mynode->name, Z_LVAL_P(member)); in sxe_prop_dim_read()
299 } else if (member) { in sxe_prop_dim_read()
300 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, &cnt); in sxe_prop_dim_read()
307 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_read()
308 …_LONG_FMT " when only " ZEND_LONG_FMT " such elements exist", mynode->name, Z_LVAL_P(member), cnt); in sxe_prop_dim_read()
322 if (member == &tmp_zv) { in sxe_prop_dim_read()
337 zval member; in sxe_property_read() local
338 ZVAL_STR(&member, name); in sxe_property_read()
339 return sxe_prop_dim_read(object, &member, 1, 0, type, rv); in sxe_property_read()
363 static zval *sxe_prop_dim_write(zend_object *object, zval *member, zval *value, bool elements, bool… in sxe_prop_dim_write() argument
382 if (!member) { in sxe_prop_dim_write()
393 ZVAL_DEREF(member); in sxe_prop_dim_write()
394 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
401 if (Z_TYPE_P(member) != IS_STRING) { in sxe_prop_dim_write()
402 trim_str = zval_try_get_string_func(member); in sxe_prop_dim_write()
409 member = &tmp_zv; in sxe_prop_dim_write()
412 if (!Z_STRLEN_P(member)) { in sxe_prop_dim_write()
414 if (member == &tmp_zv) { in sxe_prop_dim_write()
435 if (!member && node && node->parent && in sxe_prop_dim_write()
475 if (member == &tmp_zv) { in sxe_prop_dim_write()
487 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
488 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_write()
490 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_write()
501 …>name, sxe->iter.name)) && xmlStrEqual(attr->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe,… in sxe_prop_dim_write()
513 if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
525 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_write()
526 …ment %s number " ZEND_LONG_FMT " when only 0 such elements exist", mynode->name, Z_LVAL_P(member)); in sxe_prop_dim_write()
529 } else if (member) { in sxe_prop_dim_write()
530 newnode = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, &cnt); in sxe_prop_dim_write()
540 …if (xmlStrEqual(node->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe, node, sxe->iter.nspref… in sxe_prop_dim_write()
567 if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
570 …newnode = xmlNewTextChild(mynode, mynode->ns, (xmlChar *)Z_STRVAL_P(member), value_str ? (xmlChar … in sxe_prop_dim_write()
572 } else if (!member || Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
573 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_write()
574 …_LONG_FMT " when only " ZEND_LONG_FMT " such elements exist", mynode->name, Z_LVAL_P(member), cnt); in sxe_prop_dim_write()
579 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_write()
580 …ange attribute number " ZEND_LONG_FMT " when only %d attributes exist", Z_LVAL_P(member), nodendx); in sxe_prop_dim_write()
582 …newnode = (xmlNodePtr)xmlNewProp(node, (xmlChar *)Z_STRVAL_P(member), value_str ? (xmlChar *)ZSTR_… in sxe_prop_dim_write()
587 if (member == &tmp_zv) { in sxe_prop_dim_write()
603 zval member; in sxe_property_write() local
604 ZVAL_STR(&member, name); in sxe_property_write()
605 zval *retval = sxe_prop_dim_write(object, &member, value, 1, 0, NULL); in sxe_property_write()
624 zval member; in sxe_property_get_adr() local
636 ZVAL_STR(&member, zname); in sxe_property_get_adr()
637 if (sxe_prop_dim_write(object, &member, NULL, 1, 0, &node) == &EG(error_zval)) { in sxe_property_get_adr()
656 static int sxe_prop_dim_exists(zend_object *object, zval *member, int check_empty, bool elements, b… in sxe_prop_dim_exists() argument
665 if (Z_TYPE_P(member) != IS_STRING && Z_TYPE_P(member) != IS_LONG) { in sxe_prop_dim_exists()
666 zend_string *str = zval_try_get_string_func(member); in sxe_prop_dim_exists()
671 member = &tmp_zv; in sxe_prop_dim_exists()
678 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_exists()
702 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_exists()
705 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_exists()
707 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_exists()
717 …>name, sxe->iter.name)) && xmlStrEqual(attr->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe,… in sxe_prop_dim_exists()
733 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_exists()
737 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_exists()
739 node = sxe_find_element_by_name(sxe, node->children, (xmlChar *)Z_STRVAL_P(member)); in sxe_prop_dim_exists()
752 if (member == &tmp_zv) { in sxe_prop_dim_exists()
763 zval member; in sxe_property_exists() local
764 ZVAL_STR(&member, name); in sxe_property_exists()
765 return sxe_prop_dim_exists(object, &member, check_empty, 1, 0); in sxe_property_exists()
770 static int sxe_dimension_exists(zend_object *object, zval *member, int check_empty) in sxe_dimension_exists() argument
772 return sxe_prop_dim_exists(object, member, check_empty, 0, 1); in sxe_dimension_exists()
777 static void sxe_prop_dim_delete(zend_object *object, zval *member, bool elements, bool attribs) in sxe_prop_dim_delete() argument
787 if (Z_TYPE_P(member) != IS_STRING && Z_TYPE_P(member) != IS_LONG) { in sxe_prop_dim_delete()
788 zend_string *str = zval_try_get_string_func(member); in sxe_prop_dim_delete()
793 member = &tmp_zv; in sxe_prop_dim_delete()
800 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_delete()
826 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_delete()
829 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_delete()
831 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_delete()
843 …>name, sxe->iter.name)) && xmlStrEqual(attr->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe,… in sxe_prop_dim_delete()
854 if (Z_TYPE_P(member) == IS_LONG) { in sxe_prop_dim_delete()
858 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_delete()
870 …if (xmlStrEqual(node->name, (xmlChar *)Z_STRVAL_P(member)) && match_ns(sxe, node, sxe->iter.nspref… in sxe_prop_dim_delete()
882 if (member == &tmp_zv) { in sxe_prop_dim_delete()
891 zval member; in sxe_property_delete() local
892 ZVAL_STR(&member, name); in sxe_property_delete()
893 sxe_prop_dim_delete(object, &member, 1, 0); in sxe_property_delete()