]> granicus.if.org Git - php/commit
Fix incdec of referenced properties
authorNikita Popov <nikic@php.net>
Sun, 12 Oct 2014 18:39:07 +0000 (20:39 +0200)
committerNikita Popov <nikic@php.net>
Sun, 12 Oct 2014 18:55:52 +0000 (20:55 +0200)
commitb7e139a59ca7962c98ce1eb75150dd131978b41d
tree982ceb61cfedf3b6675957353cfd605b090c4a40
parent016a96c7c27fb244bd774a7fcd95edd30938a240
Fix incdec of referenced properties

I thought these SEPARATE_ZVAL_IF_NOT_REF usages were safe at first,
because incdec op supports reference variables. However this
violates the constraint that IS_TMP_VAR variables may not be
references (which is an issue if you use the result of the incdec
op).

Still need to fix the cases where read_property/write_property is
used.
.gdbinit
Zend/tests/incdec_ref_property.phpt [new file with mode: 0644]
Zend/zend_vm_def.h
Zend/zend_vm_execute.h