From 23bcc1c66b5f0c02960eacc8db975d110f2c1d8a Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 20 Mar 2013 16:45:24 +1300 Subject: [PATCH] Remove lingering relic of PHP4 support --- Lib/exception.i | 8 ++------ 1 file 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