summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-06-09 00:29:33 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-06-09 00:36:46 +0200
commit7498f0163b6141cfd56ab317e86a84065c0e887b (patch)
treec26f7c4ec5c0f2f65e5a0fc9ec1eed554bb6f39d /ext/mbstring/php_mbregex.c
parentbefc518c82758f4167ca07841c3ea1af3ca78c0b (diff)
downloadphp-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