diff --git a/CHANGES.current b/CHANGES.current index d5f8277ec..2a84fef23 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,9 @@ Version 1.3.32 (in progress) ============================ +04/16/2007: olly + [PHP5] Fix how zend_throw_exception() is called (bug #1700785). + 04/10/2007: olly Define SWIGTEMPLATEDISAMBIGUATOR to template for aCC (reported on swig-user that this is needed). diff --git a/Lib/exception.i b/Lib/exception.i index 51b767268..e30ac1a5d 100644 --- a/Lib/exception.i +++ b/Lib/exception.i @@ -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