From e6611209f659f007dc6b0f001cb5bef65cc7f98d Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 16 Apr 2007 15:13:45 +0000 Subject: [PATCH] [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 --- CHANGES.current | 3 +++ Lib/exception.i | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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