File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -438,8 +438,6 @@ typedef struct _zend_property_info {
438
438
((uint32_t)(XtOffsetOf(zend_object, properties_table) + sizeof(zval) * (num)))
439
439
#define OBJ_PROP_TO_NUM (offset ) \
440
440
((offset - OBJ_PROP_TO_OFFSET(0)) / sizeof(zval))
441
- #define OBJ_PROP_PTR_TO_NUM (obj , prop ) \
442
- (((char*)prop - (char*)obj->properties_table) / sizeof(zval))
443
441
444
442
typedef struct _zend_class_constant {
445
443
zval value ; /* flags are stored in u2 */
Original file line number Diff line number Diff line change @@ -141,8 +141,7 @@ static void zho_declared_it_fetch_current(zend_object_iterator *iter)
141
141
} else if (Z_TYPE_P (property ) != IS_REFERENCE ) {
142
142
ZVAL_MAKE_REF (property );
143
143
144
- zend_class_entry * ce = zobj -> ce ;
145
- zend_property_info * prop_info = ce -> properties_info_table [OBJ_PROP_PTR_TO_NUM (zobj , property )];
144
+ zend_property_info * prop_info = zend_get_property_info_for_slot (zobj , property );
146
145
if (ZEND_TYPE_IS_SET (prop_info -> type )) {
147
146
ZEND_REF_ADD_TYPE_SOURCE (Z_REF_P (property ), prop_info );
148
147
}
You can’t perform that action at this time.
0 commit comments