[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:
Olly Betts 2007-04-16 15:13:45 +00:00
commit e6611209f6
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,9 @@
Version 1.3.32 (in progress) Version 1.3.32 (in progress)
============================ ============================
04/16/2007: olly
[PHP5] Fix how zend_throw_exception() is called (bug #1700785).
04/10/2007: olly 04/10/2007: olly
Define SWIGTEMPLATEDISAMBIGUATOR to template for aCC (reported on Define SWIGTEMPLATEDISAMBIGUATOR to template for aCC (reported on
swig-user that this is needed). swig-user that this is needed).

View file

@ -20,7 +20,8 @@
#if PHP_MAJOR_VERSION < 5 #if PHP_MAJOR_VERSION < 5
# define SWIG_exception(code, msg) { zend_error(E_ERROR, msg); } # define SWIG_exception(code, msg) { zend_error(E_ERROR, msg); }
#else #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
%} %}
#endif #endif