diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-10 10:50:17 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-18 12:08:06 +0100 |
commit | bb43a3822e42dbd15b1d416a166549d3980b379a (patch) | |
tree | f3a95f859229e014c5fb9a802b8f817d23c52f81 /ext/zip/php_zip.c | |
parent | e957a8cd9263a2bad1317ac7f88b9cda04081bdc (diff) | |
download | php-git-bb43a3822e42dbd15b1d416a166549d3980b379a.tar.gz |
Fetch for read in nested property assignments
$a->b->c = 'd';
is now compiled the same way as
$b = $a->b;
$b->c = 'd';
That is, we perform a read fetch on $a->b, rather than a write
fetch.
This is possible, because PHP 8 removed auto-vivification support
for objects, so $a->b->c = 'd' may no longer modify $a->b proper
(i.e. not counting interior mutability of the object).
Closes GH-5250.
Diffstat (limited to 'ext/zip/php_zip.c')
0 files changed, 0 insertions, 0 deletions