[PHP5] Fix how zend_throw_exception() is called (bug #1700785).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9673 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2632bd0c3c
commit
e6611209f6
2 changed files with 5 additions and 1 deletions
|
|
@ -20,7 +20,8 @@
|
|||
#if PHP_MAJOR_VERSION < 5
|
||||
# define SWIG_exception(code, msg) { zend_error(E_ERROR, msg); }
|
||||
#else
|
||||
# define SWIG_exception(code, msg) { zend_throw_exception(NULL, msg, code TSRMLS_CC); }
|
||||
# include "zend_exceptions.h"
|
||||
# define SWIG_exception(code, msg) { zend_throw_exception(NULL, (char*)msg, code TSRMLS_CC); }
|
||||
#endif
|
||||
%}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue