]> granicus.if.org Git - php/commit
Explicitly check for exceptions in by-ref obj prop assign
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 10 Oct 2019 12:41:35 +0000 (14:41 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 10 Oct 2019 12:41:35 +0000 (14:41 +0200)
commit4463acb9513dfb62206760c49b3da1fe4d92f40a
tree8726b06b7cfb6c114b46e838d9e931217d5b90f8
parent12f4e9e020c3968c5a201ef96c4ee589ad36e5e5
Explicitly check for exceptions in by-ref obj prop assign

Relying on setting ERROR if an exception happened during the
property address fetch is both a bit fragile and may pessimize
other codepaths that will check for exceptions in the VM. Adding
an extra exception check instead, which should also allow us to
drop the use of ERROR in this area in master.
Zend/zend_execute.c
tests/classes/static_properties_003_error4.phpt