foreach ( $args as $arg ) {
$matches = array();
if ( preg_match( '/^--(.+?)(?:=(.+?)(?::(.+?))?)?$/', $arg, $matches ) ) {
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
list( /* $full */, $opt, $val, $param ) = $matches;
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
switch ( $opt ) {
case "plugin":
case "server":
$this->server = $val;
break;
- case "force-normal":
- if ( !function_exists( 'utf8_normalize' ) ) {
- $this->fatalError( "UTF-8 normalization extension not loaded. " .
- "Install or remove --force-normal parameter to use slower code." );
- }
- break;
default:
$this->processOption( $opt, $val, $param );
}