From c31ffe1398f8c75455f9cdd0270f1d8915b37c45 Mon Sep 17 00:00:00 2001 From: Jasper van Maarschalkerweerd Date: Wed, 11 Oct 2023 12:09:35 +0200 Subject: [PATCH] Ignore errors/warnings/notices for the iconv test --- Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Text.php b/Text.php index da3dd69..ff01f0e 100644 --- a/Text.php +++ b/Text.php @@ -46,7 +46,7 @@ public function __construct(&$graph, $font = null, $adjust = 0) if($graph->getOption('use_iconv', true) && extension_loaded('iconv')) { // test the iconv function $test_euro = "Test:\u{20ac}"; - $out = iconv('UTF-8', 'ASCII//TRANSLIT', $test_euro); + $out = @iconv('UTF-8', 'ASCII//TRANSLIT', $test_euro); Text::$use_iconv = (strlen($out) > 0); } }