10000 Silence errors from iconv (this removes the exceptions thrown in the … · html5lib/html5lib-php@08c3a7e · GitHub
[go: up one dir, main page]

Skip to content

Commit 08c3a7e

Browse files
committed
Silence errors from iconv (this removes the exceptions thrown in the test suite, but the tests still fail).
1 parent 370ae4e commit 08c3a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/HTML5/InputStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct($data) {
7373
// omitted.
7474
if (extension_loaded('iconv')) {
7575
// non-conforming
76-
$data = iconv('UTF-8', 'UTF-8//IGNORE', $data);
76+
$data = @iconv('UTF-8', 'UTF-8//IGNORE', $data);
7777
} else {
7878
// we can make a conforming native implementation
7979
throw new Exception('Not implemented, please install mbstring or iconv');

0 commit comments

Comments
 (0)
0