com php-src: Use "modify" error message for FUNC_ARG fetch as well: Zend/zend_execute.c

From: Date: Wed, 20 Feb 2019 10:54:22 +0000
Subject: com php-src: Use "modify" error message for FUNC_ARG fetch as well: Zend/zend_execute.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104774@lists.php.net to get a copy of this message
Commit: a92db42568d5be412fd536cc96475f0a61666223 Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 20 Feb 2019 11:53:31 +0100 Parents: c0e15a3b7fef5b341eb96e0e888f180ba7a39570 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a92db42568d5be412fd536cc96475f0a61666223 Log: Use "modify" error message for FUNC_ARG fetch as well Avoid differences based on whether a W or FUNC_ARG fetch is performed. Changed paths: M Zend/zend_execute.c Diff: diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 7d2e442..70669e5 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -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 {

« previous php.cvs (#104774) next »