]> granicus.if.org Git - php/commit
Check class linking in VERIFY_RETURN_TYPE optimization
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 25 Oct 2019 09:24:32 +0000 (11:24 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 25 Oct 2019 09:24:32 +0000 (11:24 +0200)
commitf07565b0ebdfc5b8210bbf58d994ebd319014e67
treef1e4dc0a53f22105b7e50a0d7b4e7eeb12fb22f0
parenta8b4e40fa225f4f2524cc29c37119d00005ccca1
Check class linking in VERIFY_RETURN_TYPE optimization

instanceof_function() requires linked classes. I'm not reusing
unlinked_instanceof() here, because it performs class loading,
which wouldn't be right here, I think.
ext/opcache/Optimizer/dfa_pass.c
ext/opcache/tests/verify_return_instanceof.phpt [new file with mode: 0644]