]> granicus.if.org Git - php/commit
Fix nullsafe operator on reference
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Aug 2020 13:11:36 +0000 (15:11 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Aug 2020 13:11:36 +0000 (15:11 +0200)
commitf491dabe403646a751dde52679bc817967477914
tree4bea361daf61c33a91952b351e324e50819d6977
parent75baa729f53914afad456296fdbfb52d99dbfd6b
Fix nullsafe operator on reference

Dereference the value before checking the type. As the happy path
necessarily has to check for references, I'm not bothering to
delay the comparison.
Zend/tests/nullsafe_operator/031.phpt [new file with mode: 0644]
Zend/zend_vm_def.h
Zend/zend_vm_execute.h