From ca734bce7fb2c46bcfb256ec0cc99a60f22612bf Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 8 Jul 2025 15:31:48 +0200 Subject: add patch for test suite with PHP 8.5 from https://github.com/m6w6/ext-http/pull/148 --- 0001-ignore-deprecated.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 0001-ignore-deprecated.patch (limited to '0001-ignore-deprecated.patch') diff --git a/0001-ignore-deprecated.patch b/0001-ignore-deprecated.patch new file mode 100644 index 0000000..5f3b5d5 --- /dev/null +++ b/0001-ignore-deprecated.patch @@ -0,0 +1,33 @@ +From fd752f8aab924b4edf834e57fdcbe34375b2e975 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 8 Jul 2025 15:27:59 +0200 +Subject: [PATCH] ignore deprecated + +--- + tests/skipif.inc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/skipif.inc b/tests/skipif.inc +index 76c3bd7..53a2753 100644 +--- a/tests/skipif.inc ++++ b/tests/skipif.inc +@@ -8,14 +8,14 @@ function _ext($ext) { + } + + function utf8locale() { +- $locale = setlocale(LC_CTYPE, null); ++ $locale = @setlocale(LC_CTYPE, null); + if (stristr($locale, "utf") && substr($locale, -1) === "8") { + return true; + } + if (stristr(setlocale(LC_CTYPE, "C.UTF-8"), "utf")) { + return true; + } +- $locale = setlocale(LC_CTYPE, null); ++ $locale = @setlocale(LC_CTYPE, null); + if (stristr($locale, "utf") && substr($locale, -1) === "8") { + return true; + } +-- +2.50.0 + -- cgit