Map known PHP interfaces to zend_class_entry*

Most pre-defined interfaces are accessible via zend_class_entry*
variables declared in the PHP C API - we can use these to add
an interface at MINIT time (rather than having to wait until RINIT to
look up by name) by having a mapping from PHP interface name to them.

This will also be a little faster than looking up by name.

Closes #2013
This commit is contained in:
Olly Betts 2021-05-05 12:02:38 +12:00
commit 3c168ef332
4 changed files with 124 additions and 19 deletions

View file

@ -547,3 +547,6 @@
/* php keywords */
%include <phpkw.swg>
/* PHP known interfaces */
%include <phpinterfaces.i>