Skip to content

Commit

Permalink
Merge pull request #83 from jasper-eljakim/master
Browse files Browse the repository at this point in the history
Ignore errors/warnings/notices for the iconv test
  • Loading branch information
goat1000 authored Oct 19, 2023
2 parents 322b294 + c31ffe1 commit e8f79e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit e8f79e1

Please sign in to comment.