]> granicus.if.org Git - php/commit
Fix leak in typed reference assignment
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 27 Aug 2020 12:36:12 +0000 (14:36 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 27 Aug 2020 12:40:35 +0000 (14:40 +0200)
commita2bbd8f01fd23e754340b61a6661e5a3152e9661
tree7c9413792c78c24fe221aa05cfe42d97ad899ba9
parente701146070e3287dc4519f543b2228ca54f4f029
Fix leak in typed reference assignment

We're only creating tmp here to compare against the existing
coerced_value. We need to destroy it in all cases.
Zend/tests/type_declarations/typed_properties_reference_coercion_leak.phpt [new file with mode: 0644]
Zend/zend_execute.c