aboutsummaryrefslogtreecommitdiff
path: root/Lib/exception.i
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2013-03-20 16:45:24 +1300
committerOlly Betts <olly@survex.com>2013-03-20 16:45:24 +1300
commit23bcc1c66b5f0c02960eacc8db975d110f2c1d8a (patch)
tree9fab41e82a9f255a56dcd7664b19cfaf3fcbf987 /Lib/exception.i
parentb72aca1d0739c66ff3bc3dc54385f296e662082b (diff)
downloadswig-23bcc1c66b5f0c02960eacc8db975d110f2c1d8a.tar.gz
Remove lingering relic of PHP4 support
Diffstat (limited to 'Lib/exception.i')
-rw-r--r--Lib/exception.i8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/exception.i b/Lib/exception.i
index 8d8df33dd..dc3a7f462 100644
--- a/Lib/exception.i
+++ b/Lib/exception.i
@@ -14,12 +14,8 @@
#ifdef SWIGPHP
%{
-#if PHP_MAJOR_VERSION < 5
-# define SWIG_exception(code, msg) { zend_error(E_ERROR, msg); }
-#else
-# include "zend_exceptions.h"
-# define SWIG_exception(code, msg) { zend_throw_exception(NULL, (char*)msg, code TSRMLS_CC); }
-#endif
+#include "zend_exceptions.h"
+#define SWIG_exception(code, msg) { zend_throw_exception(NULL, (char*)msg, code TSRMLS_CC); }
%}
#endif