Fix segfault in exception class creation

We can't safely lookup the Exception class entry at MINIT time, but we
can just use zend_ce_exception instead, which will be a bit faster too.
This commit is contained in:
Olly Betts 2021-05-04 11:34:24 +12:00
commit 6e6d720d88
2 changed files with 41 additions and 49 deletions

View file

@ -7,5 +7,6 @@
%init %{
SWIG_php_minit {
zend_class_entry SWIGUNUSED internal_ce;
SWIG_InitializeModule((void*)&module_number);
%}