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.
12 lines
331 B
Text
12 lines
331 B
Text
|
|
/* ------------------------------------------------------------
|
|
* The start of the PHP initialization function
|
|
* ------------------------------------------------------------ */
|
|
|
|
%insert(init) "swiginit.swg"
|
|
|
|
%init %{
|
|
SWIG_php_minit {
|
|
zend_class_entry SWIGUNUSED internal_ce;
|
|
SWIG_InitializeModule((void*)&module_number);
|
|
%}
|