Lines Matching refs:member

145 static zval *zend_std_call_getter(zval *object, zval *member TSRMLS_DC) /* {{{ */  in zend_std_call_getter()
156 SEPARATE_ARG_IF_REF(member); in zend_std_call_getter()
158 zend_call_method_with_1_params(&object, ce, &ce->__get, ZEND_GET_FUNC_NAME, &retval, member); in zend_std_call_getter()
160 zval_ptr_dtor(&member); in zend_std_call_getter()
170 static int zend_std_call_setter(zval *object, zval *member, zval *value TSRMLS_DC) /* {{{ */ in zend_std_call_setter() argument
176 SEPARATE_ARG_IF_REF(member); in zend_std_call_setter()
185 …zend_call_method_with_2_params(&object, ce, &ce->__set, ZEND_SET_FUNC_NAME, &retval, member, value… in zend_std_call_setter()
187 zval_ptr_dtor(&member); in zend_std_call_setter()
200 static void zend_std_call_unsetter(zval *object, zval *member TSRMLS_DC) /* {{{ */ in zend_std_call_unsetter()
208 SEPARATE_ARG_IF_REF(member); in zend_std_call_unsetter()
210 zend_call_method_with_1_params(&object, ce, &ce->__unset, ZEND_UNSET_FUNC_NAME, NULL, member); in zend_std_call_unsetter()
212 zval_ptr_dtor(&member); in zend_std_call_unsetter()
216 static zval *zend_std_call_issetter(zval *object, zval *member TSRMLS_DC) /* {{{ */ in zend_std_call_issetter()
227 SEPARATE_ARG_IF_REF(member); in zend_std_call_issetter()
229 zend_call_method_with_1_params(&object, ce, &ce->__isset, ZEND_ISSET_FUNC_NAME, &retval, member); in zend_std_call_issetter()
231 zval_ptr_dtor(&member); in zend_std_call_issetter()
270 …_property_info *zend_get_property_info_quick(zend_class_entry *ce, zval *member, int silent, const… in zend_get_property_info_quick() argument
281 if (UNEXPECTED(Z_STRVAL_P(member)[0] == '\0')) { in zend_get_property_info_quick()
283 if (Z_STRLEN_P(member) == 0) { in zend_get_property_info_quick()
292 h = key ? key->hash_value : zend_get_hash_value(Z_STRVAL_P(member), Z_STRLEN_P(member) + 1); in zend_get_property_info_quick()
293 …if (zend_hash_quick_find(&ce->properties_info, Z_STRVAL_P(member), Z_STRLEN_P(member)+1, h, (void … in zend_get_property_info_quick()
307 …d_error(E_STRICT, "Accessing static property %s::$%s as non static", ce->name, Z_STRVAL_P(member)); in zend_get_property_info_quick()
323 …&& zend_hash_quick_find(&EG(scope)->properties_info, Z_STRVAL_P(member), Z_STRLEN_P(member)+1, h, … in zend_get_property_info_quick()
333 … %s property %s::$%s", zend_visibility_string(property_info->flags), ce->name, Z_STRVAL_P(member)); in zend_get_property_info_quick()
344 EG(std_property_info).name = Z_STRVAL_P(member); in zend_get_property_info_quick()
345 EG(std_property_info).name_length = Z_STRLEN_P(member); in zend_get_property_info_quick()
355 ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce, zval *member, int… in zend_get_property_info() argument
357 return zend_get_property_info_quick(ce, member, silent, NULL TSRMLS_CC); in zend_get_property_info()
365 zval member; in zend_check_property_access() local
369 ZVAL_STRINGL(&member, prop_name, prop_name_len, 0); in zend_check_property_access()
370 property_info = zend_get_property_info_quick(zobj->ce, &member, 1, NULL TSRMLS_CC); in zend_check_property_access()
387 …operty_guard(zend_object *zobj, zend_property_info *property_info, zval *member, zend_guard **pgua… in zend_get_property_guard() argument
394 info.name = Z_STRVAL_P(member); in zend_get_property_guard()
395 info.name_length = Z_STRLEN_P(member); in zend_get_property_guard()
396 info.h = zend_get_hash_value(Z_STRVAL_P(member), Z_STRLEN_P(member) + 1); in zend_get_property_guard()
422 zval *zend_std_read_property(zval *object, zval *member, int type, const zend_literal *key TSRMLS_D… in zend_std_read_property() argument
434 if (UNEXPECTED(Z_TYPE_P(member) != IS_STRING)) { in zend_std_read_property()
436 *tmp_member = *member; in zend_std_read_property()
440 member = tmp_member; in zend_std_read_property()
445 fprintf(stderr, "Read object #%d property: %s\n", Z_OBJ_HANDLE_P(object), Z_STRVAL_P(member)); in zend_std_read_property()
449 …property_info = zend_get_property_info_quick(zobj->ce, member, silent || (zobj->ce->__get != NULL)… in zend_std_read_property()
462 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_read_property()
470 rv = zend_std_call_getter(object, member TSRMLS_CC); in zend_std_read_property()
487 …ct modification of overloaded property %s::$%s has no effect", zobj->ce->name, Z_STRVAL_P(member)); in zend_std_read_property()
500 if (Z_STRVAL_P(member)[0] == '\0') { in zend_std_read_property() local
501 if (Z_STRLEN_P(member) == 0) { in zend_std_read_property()
509 zend_error(E_NOTICE,"Undefined property: %s::$%s", zobj->ce->name, Z_STRVAL_P(member)); in zend_std_read_property()
523 ZEND_API void zend_std_write_property(zval *object, zval *member, zval *value, const zend_literal *… in zend_std_write_property() argument
532 if (UNEXPECTED(Z_TYPE_P(member) != IS_STRING)) { in zend_std_write_property()
534 *tmp_member = *member; in zend_std_write_property()
538 member = tmp_member; in zend_std_write_property()
542 …property_info = zend_get_property_info_quick(zobj->ce, member, (zobj->ce->__set != NULL), key TSRM… in zend_std_write_property()
584 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_write_property()
591 if (zend_std_call_setter(object, member, value TSRMLS_CC) != SUCCESS) { in zend_std_write_property()
618 if (Z_STRVAL_P(member)[0] == '\0') { in zend_std_write_property() local
619 if (Z_STRLEN_P(member) == 0) { in zend_std_write_property()
717 static zval **zend_std_get_property_ptr_ptr(zval *object, zval *member, int type, const zend_litera… in zend_std_get_property_ptr_ptr() argument
726 if (UNEXPECTED(Z_TYPE_P(member) != IS_STRING)) { in zend_std_get_property_ptr_ptr()
727 tmp_member = *member; in zend_std_get_property_ptr_ptr()
730 member = &tmp_member; in zend_std_get_property_ptr_ptr()
735 fprintf(stderr, "Ptr object #%d property: %s\n", Z_OBJ_HANDLE_P(object), Z_STRVAL_P(member)); in zend_std_get_property_ptr_ptr()
738 …property_info = zend_get_property_info_quick(zobj->ce, member, (zobj->ce->__get != NULL), key TSRM… in zend_std_get_property_ptr_ptr()
752 zend_get_property_guard(zobj, property_info, member, &guard) != SUCCESS || in zend_std_get_property_ptr_ptr()
780 zend_error(E_NOTICE, "Undefined property: %s::$%s", zobj->ce->name, Z_STRVAL_P(member)); in zend_std_get_property_ptr_ptr()
787 if (UNEXPECTED(member == &tmp_member)) { in zend_std_get_property_ptr_ptr()
788 zval_dtor(member); in zend_std_get_property_ptr_ptr()
794 static void zend_std_unset_property(zval *object, zval *member, const zend_literal *key TSRMLS_DC) … in zend_std_unset_property() argument
802 if (UNEXPECTED(Z_TYPE_P(member) != IS_STRING)) { in zend_std_unset_property()
804 *tmp_member = *member; in zend_std_unset_property()
808 member = tmp_member; in zend_std_unset_property()
812 …property_info = zend_get_property_info_quick(zobj->ce, member, (zobj->ce->__unset != NULL), key TS… in zend_std_unset_property()
827 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_unset_property()
835 zend_std_call_unsetter(object, member TSRMLS_CC); in zend_std_unset_property()
839 if (Z_STRVAL_P(member)[0] == '\0') { in zend_std_unset_property() local
840 if (Z_STRLEN_P(member) == 0) { in zend_std_unset_property()
1403 static int zend_std_has_property(zval *object, zval *member, int has_set_exists, const zend_literal… in zend_std_has_property() argument
1413 if (UNEXPECTED(Z_TYPE_P(member) != IS_STRING)) { in zend_std_has_property()
1415 *tmp_member = *member; in zend_std_has_property()
1419 member = tmp_member; in zend_std_has_property()
1424 fprintf(stderr, "Read object #%d property: %s\n", Z_OBJ_HANDLE_P(object), Z_STRVAL_P(member)); in zend_std_has_property()
1427 property_info = zend_get_property_info_quick(zobj->ce, member, 1, key TSRMLS_CC); in zend_std_has_property()
1442 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_has_property()
1452 rv = zend_std_call_issetter(object, member TSRMLS_CC); in zend_std_has_property()
1459 rv = zend_std_call_getter(object, member TSRMLS_CC); in zend_std_has_property()