Skip to content

Commit

Permalink
Use "modify" error message for FUNC_ARG fetch as well
Browse files Browse the repository at this point in the history
Avoid differences based on whether a W or FUNC_ARG fetch is performed.
  • Loading branch information
nikic committed Feb 20, 2019
1 parent c0e15a3 commit a92db42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Zend/zend_execute.c
Expand Up @@ -711,6 +711,7 @@ static zend_never_inline ZEND_COLD zval* ZEND_FASTCALL make_real_object(zval *ob
zend_error(E_WARNING, "Attempt to increment/decrement property '%s' of non-object", ZSTR_VAL(property_name));
} else if (opline->opcode == ZEND_FETCH_OBJ_W
|| opline->opcode == ZEND_FETCH_OBJ_RW
|| opline->opcode == ZEND_FETCH_OBJ_FUNC_ARG
|| opline->opcode == ZEND_ASSIGN_OBJ_REF) {
zend_error(E_WARNING, "Attempt to modify property '%s' of non-object", ZSTR_VAL(property_name));
} else {
Expand Down

0 comments on commit a92db42

Please sign in to comment.