Remove lingering relic of PHP4 support
This commit is contained in:
parent
b72aca1d07
commit
23bcc1c66b
1 changed files with 2 additions and 6 deletions
|
|
@ -14,12 +14,8 @@
|
||||||
|
|
||||||
#ifdef SWIGPHP
|
#ifdef SWIGPHP
|
||||||
%{
|
%{
|
||||||
#if PHP_MAJOR_VERSION < 5
|
#include "zend_exceptions.h"
|
||||||
# define SWIG_exception(code, msg) { zend_error(E_ERROR, msg); }
|
#define SWIG_exception(code, msg) { zend_throw_exception(NULL, (char*)msg, code TSRMLS_CC); }
|
||||||
#else
|
|
||||||
# include "zend_exceptions.h"
|
|
||||||
# define SWIG_exception(code, msg) { zend_throw_exception(NULL, (char*)msg, code TSRMLS_CC); }
|
|
||||||
#endif
|
|
||||||
%}
|
%}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue