Remove lingering relic of PHP4 support

This commit is contained in:
Olly Betts 2013-03-20 16:45:24 +13:00
commit 23bcc1c66b

View file

@ -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