]> granicus.if.org Git - php/commit
Respect typed references in catch assignment
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 26 May 2020 12:59:40 +0000 (14:59 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 26 May 2020 12:59:40 +0000 (14:59 +0200)
commit4a08ca1294ea848fea2a0f87305d3b42226f16dd
treefe2467513c580481f2f6f4b9bb3cbe516e2ad8c6
parent314ab47e55845862be62683e331aa247025d073d
Respect typed references in catch assignment

I decided to null out EG(exception) early here, which means only
the exception from the dtor / ref assign is preserved, and the
previous exception is not chained in. This is more robust, and
I don't think this situation is common enough to be bothered about
the precise behavior.
Zend/tests/bug53511.phpt
Zend/tests/type_declarations/typed_properties_108.phpt [new file with mode: 0644]
Zend/zend_vm_def.h
Zend/zend_vm_execute.h