upload: Suppress warnings from iconv()
iconv() can still emit notices even when '//IGNORE' string flag is passed. Bug: T387690 Change-Id: I16f1e99f7c25457aa0b35cb428391c42dec7b91d (cherry picked from commit 357f2b61e815e071147583e07b388801189462bf)
This commit is contained in:
parent
6beb3946d5
commit
39386a5b7c
1 changed files with 2 additions and 0 deletions
|
|
@ -1393,7 +1393,9 @@ abstract class UploadBase {
|
|||
}
|
||||
|
||||
if ( $enc !== null ) {
|
||||
AtEase::suppressWarnings();
|
||||
$chunk = iconv( $enc, "ASCII//IGNORE", $chunk );
|
||||
AtEase::restoreWarnings();
|
||||
}
|
||||
|
||||
$chunk = trim( $chunk );
|
||||
|
|
|
|||
Loading…
Reference in a new issue