From d3cfae8e3f82b9126085671d1c1db29631d71374 Mon Sep 17 00:00:00 2001 From: Karoly Gossler Date: Wed, 24 Jan 2024 13:28:39 +0100 Subject: [PATCH 1/2] fix(tests) replace use of iconv in SearchTestCase.php --- tests/SearchTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SearchTestCase.php b/tests/SearchTestCase.php index c73245565..7a291b7b3 100644 --- a/tests/SearchTestCase.php +++ b/tests/SearchTestCase.php @@ -229,7 +229,7 @@ public function testUtf8AnalyzerKnowsToHandleOtherEncodingsWorks() $analyzer = new Doctrine_Search_Analyzer_Utf8(); // convert our test string to iso8859-15 - $iso = iconv('UTF-8','ISO8859-15', 'un éléphant ça trompe énormément'); + $iso = mb_convert_encoding('un éléphant ça trompe énormément', 'ISO-8859-15', 'UTF-8'); $words = $analyzer->analyze($iso, 'ISO8859-15'); $this->assertEqual($words[1], 'éléphant'); From e097d47d0ae4ed4371c1f20333bb93aab1e76fe3 Mon Sep 17 00:00:00 2001 From: Karoly Gossler Date: Wed, 24 Jan 2024 13:28:44 +0100 Subject: [PATCH 2/2] add(composer): ext-iconv is now a requirement --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 053673e5d..778193c61 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,7 @@ "require": { "php": ">=5.3", "ext-zlib": "*", + "ext-iconv": "*", "ext-mbstring": "*", "ext-pdo": "*" },