Lines Matching refs:zobj
66 ZEND_API void rebuild_object_properties(zend_object *zobj) /* {{{ */ in rebuild_object_properties() argument
68 if (!zobj->properties) { in rebuild_object_properties()
71 zend_class_entry *ce = zobj->ce; in rebuild_object_properties()
73 ALLOC_HASHTABLE(zobj->properties); in rebuild_object_properties()
74 zend_hash_init(zobj->properties, 0, NULL, ZVAL_PTR_DTOR, 0); in rebuild_object_properties()
82 zobj->properties_table[prop_info->offset]) { in rebuild_object_properties()
83 …zobj->properties, prop_info->name, prop_info->name_length+1, prop_info->h, (void**)&zobj->properti… in rebuild_object_properties()
95 zobj->properties_table[prop_info->offset]) { in rebuild_object_properties()
96 …zobj->properties, prop_info->name, prop_info->name_length+1, prop_info->h, (void**)&zobj->properti… in rebuild_object_properties()
107 zend_object *zobj; in zend_std_get_properties() local
108 zobj = Z_OBJ_P(object); in zend_std_get_properties()
109 if (!zobj->properties) { in zend_std_get_properties()
110 rebuild_object_properties(zobj); in zend_std_get_properties()
112 return zobj->properties; in zend_std_get_properties()
123 zend_object *zobj = Z_OBJ_P(object); in zend_std_get_gc() local
125 if (zobj->properties) { in zend_std_get_gc()
128 return zobj->properties; in zend_std_get_gc()
130 *table = zobj->properties_table; in zend_std_get_gc()
131 *n = zobj->ce->default_properties_count; in zend_std_get_gc()
361 ZEND_API int zend_check_property_access(zend_object *zobj, const char *prop_info_name, int prop_inf… in zend_check_property_access() argument
369 property_info = zend_get_property_info_quick(zobj->ce, &member, 1, NULL TSRMLS_CC); in zend_check_property_access()
382 return zend_verify_property_access(property_info, zobj->ce TSRMLS_CC) ? SUCCESS : FAILURE; in zend_check_property_access()
386 static int zend_get_property_guard(zend_object *zobj, zend_property_info *property_info, zval *memb… in zend_get_property_guard() argument
407 if (!zobj->guards) { in zend_get_property_guard()
408 ALLOC_HASHTABLE(zobj->guards); in zend_get_property_guard()
409 zend_hash_init(zobj->guards, 0, NULL, NULL, 0); in zend_get_property_guard()
410 …} else if (zend_hash_quick_find(zobj->guards, property_info->name, property_info->name_length+1, p… in zend_get_property_guard()
417 …return zend_hash_quick_add(zobj->guards, property_info->name, property_info->name_length+1, proper… in zend_get_property_guard()
423 zend_object *zobj; in zend_std_read_property() local
431 zobj = Z_OBJ_P(object); in zend_std_read_property()
448 …property_info = zend_get_property_info_quick(zobj->ce, member, silent || (zobj->ce->__get != NULL)… in zend_std_read_property()
453 (zobj->properties ? in zend_std_read_property()
454 ((retval = (zval**)zobj->properties_table[property_info->offset]) == NULL) : in zend_std_read_property()
455 (*(retval = &zobj->properties_table[property_info->offset]) == NULL)) : in zend_std_read_property()
456 (UNEXPECTED(!zobj->properties) || in zend_std_read_property()
457 …UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+… in zend_std_read_property()
460 if (zobj->ce->__get && in zend_std_read_property()
461 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_read_property()
486 …CE, "Indirect modification of overloaded property %s::$%s has no effect", zobj->ce->name, Z_STRVAL… in zend_std_read_property()
498 if (zobj->ce->__get && guard && guard->in_get == 1) { in zend_std_read_property()
508 zend_error(E_NOTICE,"Undefined property: %s::$%s", zobj->ce->name, Z_STRVAL_P(member)); in zend_std_read_property()
524 zend_object *zobj; in zend_std_write_property() local
529 zobj = Z_OBJ_P(object); in zend_std_write_property()
541 …property_info = zend_get_property_info_quick(zobj->ce, member, (zobj->ce->__set != NULL), key TSRM… in zend_std_write_property()
546 (zobj->properties ? in zend_std_write_property()
547 ((variable_ptr = (zval**)zobj->properties_table[property_info->offset]) != NULL) : in zend_std_write_property()
548 (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : in zend_std_write_property()
549 (EXPECTED(zobj->properties != NULL) && in zend_std_write_property()
550 …EXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1,… in zend_std_write_property()
582 if (zobj->ce->__set && in zend_std_write_property()
583 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_write_property()
603 if (!zobj->properties) { in zend_std_write_property()
604 zobj->properties_table[property_info->offset] = value; in zend_std_write_property()
605 } else if (zobj->properties_table[property_info->offset]) { in zend_std_write_property()
606 *(zval**)zobj->properties_table[property_info->offset] = value; in zend_std_write_property()
608 …_quick_update(zobj->properties, property_info->name, property_info->name_length+1, property_info->… in zend_std_write_property()
611 if (!zobj->properties) { in zend_std_write_property()
612 rebuild_object_properties(zobj); in zend_std_write_property()
614 …zend_hash_quick_update(zobj->properties, property_info->name, property_info->name_length+1, proper… in zend_std_write_property()
616 } else if (zobj->ce->__set && guard && guard->in_set == 1) { in zend_std_write_property()
718 zend_object *zobj; in zend_std_get_property_ptr_ptr() local
723 zobj = Z_OBJ_P(object); in zend_std_get_property_ptr_ptr()
737 …property_info = zend_get_property_info_quick(zobj->ce, member, (zobj->ce->__get != NULL), key TSRM… in zend_std_get_property_ptr_ptr()
742 (zobj->properties ? in zend_std_get_property_ptr_ptr()
743 ((retval = (zval**)zobj->properties_table[property_info->offset]) == NULL) : in zend_std_get_property_ptr_ptr()
744 (*(retval = &zobj->properties_table[property_info->offset]) == NULL)) : in zend_std_get_property_ptr_ptr()
745 (UNEXPECTED(!zobj->properties) || in zend_std_get_property_ptr_ptr()
746 …UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+… in zend_std_get_property_ptr_ptr()
750 if (!zobj->ce->__get || in zend_std_get_property_ptr_ptr()
751 zend_get_property_guard(zobj, property_info, member, &guard) != SUCCESS || in zend_std_get_property_ptr_ptr()
760 if (!zobj->properties) { in zend_std_get_property_ptr_ptr()
761 zobj->properties_table[property_info->offset] = new_zval; in zend_std_get_property_ptr_ptr()
762 retval = &zobj->properties_table[property_info->offset]; in zend_std_get_property_ptr_ptr()
763 } else if (zobj->properties_table[property_info->offset]) { in zend_std_get_property_ptr_ptr()
764 *(zval**)zobj->properties_table[property_info->offset] = new_zval; in zend_std_get_property_ptr_ptr()
765 retval = (zval**)zobj->properties_table[property_info->offset]; in zend_std_get_property_ptr_ptr()
767 …quick_update(zobj->properties, property_info->name, property_info->name_length+1, property_info->h… in zend_std_get_property_ptr_ptr()
768 retval = (zval**)zobj->properties_table[property_info->offset]; in zend_std_get_property_ptr_ptr()
771 if (!zobj->properties) { in zend_std_get_property_ptr_ptr()
772 rebuild_object_properties(zobj); in zend_std_get_property_ptr_ptr()
774 …zend_hash_quick_update(zobj->properties, property_info->name, property_info->name_length+1, proper… in zend_std_get_property_ptr_ptr()
790 zend_object *zobj; in zend_std_unset_property() local
794 zobj = Z_OBJ_P(object); in zend_std_unset_property()
806 …property_info = zend_get_property_info_quick(zobj->ce, member, (zobj->ce->__unset != NULL), key TS… in zend_std_unset_property()
810 !zobj->properties && in zend_std_unset_property()
812 EXPECTED(zobj->properties_table[property_info->offset] != NULL)) { in zend_std_unset_property()
813 zval_ptr_dtor(&zobj->properties_table[property_info->offset]); in zend_std_unset_property()
814 zobj->properties_table[property_info->offset] = NULL; in zend_std_unset_property()
816 !zobj->properties || in zend_std_unset_property()
817 …UNEXPECTED(zend_hash_quick_del(zobj->properties, property_info->name, property_info->name_length+1… in zend_std_unset_property()
820 if (zobj->ce->__unset && in zend_std_unset_property()
821 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_unset_property()
832 } else if (zobj->ce->__unset && guard && guard->in_unset == 1) { in zend_std_unset_property()
844 zobj->properties_table[property_info->offset] = NULL; in zend_std_unset_property()
1006 zend_object *zobj = Z_OBJ_P(object); in zend_std_get_method() local
1021 …if (UNEXPECTED(zend_hash_quick_find(&zobj->ce->function_table, lc_method_name, method_len+1, hash_… in zend_std_get_method()
1025 if (zobj->ce->__call) { in zend_std_get_method()
1026 return zend_get_user_call_function(zobj->ce, method_name, method_len); in zend_std_get_method()
1043 if (zobj->ce->__call) { in zend_std_get_method()
1044 fbc = zend_get_user_call_function(zobj->ce, method_name, method_len); in zend_std_get_method()
1069 if (zobj->ce->__call) { in zend_std_get_method()
1070 fbc = zend_get_user_call_function(zobj->ce, method_name, method_len); in zend_std_get_method()
1302 zend_object *zobj = Z_OBJ_P(object); in zend_std_get_constructor() local
1303 zend_function *constructor = zobj->ce->constructor; in zend_std_get_constructor()
1399 zend_object *zobj; in zend_std_has_property() local
1405 zobj = Z_OBJ_P(object); in zend_std_has_property()
1421 property_info = zend_get_property_info_quick(zobj->ce, member, 1, key TSRMLS_CC); in zend_std_has_property()
1426 (zobj->properties ? in zend_std_has_property()
1427 ((value = (zval**)zobj->properties_table[property_info->offset]) == NULL) : in zend_std_has_property()
1428 (*(value = &zobj->properties_table[property_info->offset]) == NULL)) : in zend_std_has_property()
1429 (UNEXPECTED(!zobj->properties) || in zend_std_has_property()
1430 …UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+… in zend_std_has_property()
1435 zobj->ce->__isset && in zend_std_has_property()
1436 zend_get_property_guard(zobj, property_info, member, &guard) == SUCCESS && in zend_std_has_property()
1451 if (EXPECTED(!EG(exception)) && zobj->ce->__get && !guard->in_get) { in zend_std_has_property()
1493 zend_object *zobj; in zend_std_object_get_class() local
1494 zobj = Z_OBJ_P(object); in zend_std_object_get_class()
1496 return zobj->ce; in zend_std_object_get_class()
1502 zend_object *zobj; in zend_std_object_get_class_name() local
1504 zobj = Z_OBJ_P(object); in zend_std_object_get_class_name()
1507 if (!zobj->ce->parent) { in zend_std_object_get_class_name()
1510 ce = zobj->ce->parent; in zend_std_object_get_class_name()
1512 ce = zobj->ce; in zend_std_object_get_class_name()