]> granicus.if.org Git - php/commit
Remove recursive check from instanceof_interface
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 24 Oct 2019 16:11:41 +0000 (18:11 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 25 Oct 2019 08:19:42 +0000 (10:19 +0200)
commit184ba0c91c3b688538d0274625241c640a8952eb
treeaeaeee37ed45ccd03e7f0a395d4489b6ed387e7b
parentc63a0e005abe4b00ab097dc47ca53d20788a6361
Remove recursive check from instanceof_interface

Parent interfaces are copied into the interface list during
inheritance, so there's no need to perform a recursive check.

Only exception are instanceof checks performed during inheritance
itself. However, we already have unlinked_instanceof for this
purpose, it just needs to be taught to handle this case.

Closes GH-4857.
Zend/zend_inheritance.c
Zend/zend_operators.c