Arrange to return after calling zend_throw_exception()

Fixes github issue#240.
This commit is contained in:
Olly Betts 2014-12-09 09:43:31 +13:00
commit 26bbc96d58
6 changed files with 133 additions and 1 deletions

View file

@ -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