Skip to content

Commit 2579448

Browse files
committed
fixup! Improve error messages for invalid property access
1 parent f5141e7 commit 2579448

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ static void ZEND_FASTCALL zend_jit_invalid_array_access(zval *container)
15091509
zend_error(E_WARNING, "Trying to access array offset on value of type %s", zend_zval_type_name(container));
15101510
}
15111511

1512-
static void ZEND_FASTCALL zend_jit_invalid_property_read(zval *container, char *property_name)
1512+
static void ZEND_FASTCALL zend_jit_invalid_property_read(zval *container, const char *property_name)
15131513
{
15141514
zend_error(E_WARNING, "Attempt to read property '%s' on %s", property_name, zend_zval_type_name(container));
15151515
}

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10590,7 +10590,7 @@ static int zend_jit_fetch_obj_read(dasm_State **Dst, const zend_op *opline, cons
1059010590
| EXT_CALL zend_jit_undefined_op_helper, r0
1059110591
|1:
1059210592
}
10593-
| GET_ZVAL_PTR FCARG1a, op1_addr
10593+
| LOAD_ZVAL_ADDR FCARG1a, op1_addr
1059410594
| LOAD_ADDR FCARG2a, Z_STRVAL_P(member)
1059510595
| EXT_CALL zend_jit_invalid_property_read, r0
1059610596
}

0 commit comments

Comments
 (0)