Arrange to return after calling zend_throw_exception()
Fixes github issue#240.
This commit is contained in:
parent
902f5d3f32
commit
26bbc96d58
6 changed files with 133 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
#ifdef SWIGPHP
|
||||
%{
|
||||
#include "zend_exceptions.h"
|
||||
#define SWIG_exception(code, msg) zend_throw_exception(NULL, (char*)msg, code TSRMLS_CC)
|
||||
#define SWIG_exception(code, msg) do { zend_throw_exception(NULL, (char*)msg, code TSRMLS_CC); goto thrown; } while (0)
|
||||
%}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue