We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec30a3b commit ee0bf4bCopy full SHA for ee0bf4b
Zend/zend_compile.h
@@ -373,7 +373,7 @@ typedef struct _zend_property_info {
373
#define OBJ_PROP_NUM(obj, num) \
374
(&(obj)->properties_table[(num)])
375
#define OBJ_PROP_TO_OFFSET(num) \
376
- ((uint32_t)(zend_uintptr_t)OBJ_PROP_NUM(((zend_object*)NULL), num))
+ ((uint32_t)(XtOffsetOf(zend_object, properties_table) + sizeof(zval) * (num)))
377
#define OBJ_PROP_TO_NUM(offset) \
378
((offset - OBJ_PROP_TO_OFFSET(0)) / sizeof(zval))
379
0 commit comments