]> granicus.if.org Git - php/commit
Optimize instanceof_class/interface
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 24 Oct 2019 15:47:35 +0000 (17:47 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 24 Oct 2019 15:47:35 +0000 (17:47 +0200)
commitc63a0e005abe4b00ab097dc47ca53d20788a6361
tree05a912eb7f7c38cba7e5098a75a94e48199acaed
parent435f2691088fa9011696fd331d401544155d69a9
Optimize instanceof_class/interface

instanceof_class does not need to check for a NULL pointer in the
first iteration -- passing NULL to this function is illegal.

instanceof_interface does not need to use instanceof_class(), it
only has to check whether the CEs match exactly. There is no way
for an interface to appear inside "parent", it will always be in
"interfaces" only.
Zend/zend_operators.c