Lines Matching refs:ar_flags

67 	int               ar_flags;  member
87 if (intern->ar_flags & SPL_ARRAY_IS_SELF) { in spl_array_get_hash_table_ptr()
92 } else if (intern->ar_flags & SPL_ARRAY_USE_OTHER) { in spl_array_get_hash_table_ptr()
126 while (intern->ar_flags & SPL_ARRAY_USE_OTHER) { in spl_array_is_object()
129 return (intern->ar_flags & SPL_ARRAY_IS_SELF) || Z_TYPE(intern->array) == IS_OBJECT; in spl_array_is_object()
181 intern->ar_flags = 0; in spl_array_object_new_ex()
186 intern->ar_flags &= ~ SPL_ARRAY_CLONE_MASK; in spl_array_object_new_ex()
187 intern->ar_flags |= (other->ar_flags & SPL_ARRAY_CLONE_MASK); in spl_array_object_new_ex()
190 if (other->ar_flags & SPL_ARRAY_IS_SELF) { in spl_array_object_new_ex()
198 intern->ar_flags |= SPL_ARRAY_USE_OTHER; in spl_array_object_new_ex()
202 intern->ar_flags |= SPL_ARRAY_USE_OTHER; in spl_array_object_new_ex()
256 …if (class_type->iterator_funcs.zf_rewind->common.scope != parent) intern->ar_flags |= SPL_ARRAY_O… in spl_array_object_new_ex()
257 …if (class_type->iterator_funcs.zf_valid->common.scope != parent) intern->ar_flags |= SPL_ARRAY_O… in spl_array_object_new_ex()
258 …if (class_type->iterator_funcs.zf_key->common.scope != parent) intern->ar_flags |= SPL_ARRAY_O… in spl_array_object_new_ex()
259 …if (class_type->iterator_funcs.zf_current->common.scope != parent) intern->ar_flags |= SPL_ARRAY_O… in spl_array_object_new_ex()
260 …if (class_type->iterator_funcs.zf_next->common.scope != parent) intern->ar_flags |= SPL_ARRAY_O… in spl_array_object_new_ex()
820 if (intern->ar_flags & SPL_ARRAY_STD_PROP_LIST) { in spl_array_get_properties()
841 if (intern->ar_flags & SPL_ARRAY_IS_SELF) { in spl_array_get_debug_info()
879 if ((intern->ar_flags & SPL_ARRAY_ARRAY_AS_PROPS) != 0 in spl_array_read_property()
890 if ((intern->ar_flags & SPL_ARRAY_ARRAY_AS_PROPS) != 0 in spl_array_write_property()
902 if ((intern->ar_flags & SPL_ARRAY_ARRAY_AS_PROPS) != 0 in spl_array_get_property_ptr_ptr()
913 if ((intern->ar_flags & SPL_ARRAY_ARRAY_AS_PROPS) != 0 in spl_array_has_property()
924 if ((intern->ar_flags & SPL_ARRAY_ARRAY_AS_PROPS) != 0 in spl_array_unset_property()
1016 if (object->ar_flags & SPL_ARRAY_OVERLOADED_VALID) { in spl_array_it_valid()
1033 if (object->ar_flags & SPL_ARRAY_OVERLOADED_CURRENT) { in spl_array_it_get_current_data()
1050 if (object->ar_flags & SPL_ARRAY_OVERLOADED_KEY) { in spl_array_it_get_current_key()
1067 if (object->ar_flags & SPL_ARRAY_OVERLOADED_NEXT) { in spl_array_it_move_forward()
1103 if (object->ar_flags & SPL_ARRAY_OVERLOADED_REWIND) { in spl_array_it_rewind()
1113 …et_array(zval *object, spl_array_object *intern, zval *array, zend_long ar_flags, int just_array) { in spl_array_set_array() argument
1128 ar_flags = other->ar_flags & ~SPL_ARRAY_INT_MASK; in spl_array_set_array()
1131 ar_flags |= SPL_ARRAY_IS_SELF; in spl_array_set_array()
1134 ar_flags |= SPL_ARRAY_USE_OTHER; in spl_array_set_array()
1150 intern->ar_flags &= ~SPL_ARRAY_IS_SELF & ~SPL_ARRAY_USE_OTHER; in spl_array_set_array()
1151 intern->ar_flags |= ar_flags; in spl_array_set_array()
1171 if (by_ref && (array_object->ar_flags & SPL_ARRAY_OVERLOADED_CURRENT)) { in spl_array_get_iterator()
1196 zend_long ar_flags = 0; in SPL_METHOD() local
1203 …if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "z|lC", &array, &ar_flags, &ce_get_iterator) == F… in SPL_METHOD()
1213 ar_flags &= ~SPL_ARRAY_INT_MASK; in SPL_METHOD()
1215 spl_array_set_array(object, intern, array, ar_flags, ZEND_NUM_ARGS() == 1); in SPL_METHOD()
1262 RETURN_LONG(intern->ar_flags & ~SPL_ARRAY_INT_MASK); in SPL_METHOD()
1272 zend_long ar_flags = 0; in SPL_METHOD() local
1274 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &ar_flags) == FAILURE) { in SPL_METHOD()
1278 intern->ar_flags = (intern->ar_flags & SPL_ARRAY_INT_MASK) | (ar_flags & ~SPL_ARRAY_INT_MASK); in SPL_METHOD()
1639 …RETURN_BOOL(Z_TYPE_P(entry) == IS_ARRAY || (Z_TYPE_P(entry) == IS_OBJECT && (intern->ar_flags & SP… in SPL_METHOD()
1664 if ((intern->ar_flags & SPL_ARRAY_CHILD_ARRAYS_ONLY) != 0) { in SPL_METHOD()
1674 ZVAL_LONG(&flags, intern->ar_flags); in SPL_METHOD()
1701 ZVAL_LONG(&flags, (intern->ar_flags & SPL_ARRAY_CLONE_MASK)); in SPL_METHOD()
1707 if (!(intern->ar_flags & SPL_ARRAY_IS_SELF)) { in SPL_METHOD()
1788 intern->ar_flags &= ~SPL_ARRAY_CLONE_MASK; in SPL_METHOD()
1789 intern->ar_flags |= flags & SPL_ARRAY_CLONE_MASK; in SPL_METHOD()
1803 intern->ar_flags &= ~SPL_ARRAY_CLONE_MASK; in SPL_METHOD()
1804 intern->ar_flags |= flags & SPL_ARRAY_CLONE_MASK; in SPL_METHOD()
1847 ZEND_ARG_INFO(0, ar_flags)