}
}
+ MWExceptionHandler::handleException( $e );
+ } catch ( Error $e ) {
+ // Type errors and such: at least handle it now and clean up the LBFactory state
MWExceptionHandler::handleException( $e );
}
$port = $info['port'];
}
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$sock = $host ? fsockopen(
$host,
$port,
// If it takes more than 100ms to connect to ourselves there is a problem...
0.100
) : false;
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
$invokedWithSuccess = true;
if ( $sock ) {