Fix early free of assign_obj op_data
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 20 Dec 2019 09:33:18 +0000 (10:33 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 20 Dec 2019 09:35:34 +0000 (10:35 +0100)
commit885b3451f4e9616e3d7d8e31cc2270f1b07ab139
tree94fcb8be2f08255bd7ea8c7bdb1be09b9acb8f70
parent66d5b0608a40cd21bc20529e82b62c308178530a
Fix early free of assign_obj op_data

We need to make sure that op_data is only freed after populating
result, as op_data may be the only thing holding the value in the
case of an overloaded assignment.

This reverts the code to how it looked like in 7.3.
Zend/tests/overloaded_assign_prop_return_value.phpt [new file with mode: 0644]
Zend/zend_vm_def.h
Zend/zend_vm_execute.h