]> granicus.if.org Git - php/commit
Use RW fetch for argument unpacking
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 30 Jul 2019 08:05:12 +0000 (10:05 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 30 Jul 2019 08:07:08 +0000 (10:07 +0200)
commit6913ec3282149914e999d91b056fe1cc68d15ed7
tree57a5c6a8d08b02303d676ccf4b381a0f0f72b35e
parent8413df5e55735b8d40b5baeea4d2b68327103626
Use RW fetch for argument unpacking

Argument unpacking may need to create references inside the array
that is being unpacked. However, it currently can only do this
if a plain variable is unpacked, not for any nested accesses,
because the value is fetched for read. Resolve this by fetching
the operands for RW.
Zend/tests/arg_unpack/nested_by_ref.phpt [new file with mode: 0644]
Zend/zend_compile.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h