diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-06-09 00:29:33 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-06-09 00:36:46 +0200 |
commit | 7498f0163b6141cfd56ab317e86a84065c0e887b (patch) | |
tree | c26f7c4ec5c0f2f65e5a0fc9ec1eed554bb6f39d /ext/mbstring/php_mbregex.c | |
parent | befc518c82758f4167ca07841c3ea1af3ca78c0b (diff) | |
download | php-git-7498f0163b6141cfd56ab317e86a84065c0e887b.tar.gz |
Fix handling of assign-ops on overloaded props with ref return
Assign-ops and incdec on overloaded properties are implemented
using a read_property followed by write_property. Previously, if
__get() returned by-reference, pre-incdec and assign-op
additionally also modified the reference, while post-incdec worked
correctly.
This change synchronizes the three code-paths to not modify the
reference. The pre-incdec implementation matches the post-incdec
implementation, the assign-op implementation uses a distinct
result operand.
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
0 files changed, 0 insertions, 0 deletions