Skip to content

Commit a92db42

Browse files
committed
Use "modify" error message for FUNC_ARG fetch as well
Avoid differences based on whether a W or FUNC_ARG fetch is performed.
1 parent c0e15a3 commit a92db42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ static zend_never_inline ZEND_COLD zval* ZEND_FASTCALL make_real_object(zval *ob
711711
zend_error(E_WARNING, "Attempt to increment/decrement property '%s' of non-object", ZSTR_VAL(property_name));
712712
} else if (opline->opcode == ZEND_FETCH_OBJ_W
713713
|| opline->opcode == ZEND_FETCH_OBJ_RW
714+
|| opline->opcode == ZEND_FETCH_OBJ_FUNC_ARG
714715
|| opline->opcode == ZEND_ASSIGN_OBJ_REF) {
715716
zend_error(E_WARNING, "Attempt to modify property '%s' of non-object", ZSTR_VAL(property_name));
716717
} else {

0 commit comments

Comments
 (0)