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 4786207 commit 0427ef9Copy full SHA for 0427ef9
Zend/zend_compile.h
@@ -577,7 +577,7 @@ struct _zend_execute_data {
577
#define EX_VAR(n) ZEND_CALL_VAR(execute_data, n)
578
#define EX_VAR_NUM(n) ZEND_CALL_VAR_NUM(execute_data, n)
579
580
-#define EX_VAR_TO_NUM(n) ((uint32_t)(ZEND_CALL_VAR(NULL, n) - ZEND_CALL_VAR_NUM(NULL, 0)))
+#define EX_VAR_TO_NUM(n) ((uint32_t)((n) / sizeof(zval) - ZEND_CALL_FRAME_SLOT))
581
582
#define ZEND_OPLINE_TO_OFFSET(opline, target) \
583
((char*)(target) - (char*)(opline))
0 commit comments