From 3b059fb6f110462532be241d51990cfe560a7741 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik@redhat.com>
Date: Wed, 24 Nov 2021 17:26:33 +0100
Subject: [PATCH] Disable PHP test, it fails with PHP 8.1

---
 swig.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/swig.spec b/swig.spec
index fbc65b9..8d35689 100644
--- a/swig.spec
+++ b/swig.spec
@@ -18,7 +18,8 @@
 %{!?guile:%global guile 0}
 %{!?lualang:%global lualang 1}
 %{!?perllang:%global perllang 1}
-%{!?phplang:%global phplang 1}
+# Disable PHP test it fails with 8.1.0
+%{!?phplang:%global phplang 0}
 # Disable Ruby test failed with swig 4.0.0 on s390
 %ifarch s390x %{power64}
 %{!?rubylang:%global rubylang 0}
@@ -53,7 +54,7 @@
 Summary: Connects C/C++/Objective C to some high-level programming languages
 Name:    swig
 Version: 4.0.2
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: GPLv3+ and BSD
 URL:     http://swig.sourceforge.net/
 Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
@@ -346,6 +347,9 @@ install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb
 %{_datadir}/%{name}/gdb
 
 %changelog
+* Wed Nov 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.0.2-11
+- Disable PHP test, it fails with PHP 8.1
+
 * Thu Oct 07 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.0.2-10
 - Enable Python tests