openbsd-ports/devel/swig/patches/patch-Lib_exception_i
landry 531683f7e0 devel/swig: backport php 8 support from upstream, & enable php support
https://github.com/swig/swig/pull/1978 via
62dded8bac
(pointed out by a debian developer)

this allows me to build php8 bindings for an upcoming mapserver 8.0 release.

went in a bulk build without fallout, thanks sthen@
ok sthen@
2022-06-28 08:59:16 +00:00

17 lines
469 B
Plaintext

backport php 8 support from upstream
https://github.com/swig/swig/pull/1978 via
https://src.fedoraproject.org/rpms/swig/c/62dded8bacb09398b03d1352820636182d2494ab
Index: Lib/exception.i
--- Lib/exception.i.orig
+++ Lib/exception.i
@@ -12,7 +12,7 @@
%insert("runtime") "swigerrors.swg"
-#ifdef SWIGPHP7
+#ifdef SWIGPHP
%{
#include "zend_exceptions.h"
#define SWIG_exception(code, msg) do { zend_throw_exception(NULL, (char*)msg, code); goto thrown; } while (0)