private $mFieldInfoCache = [];
function __construct( array $p ) {
- global $wgDBprefix;
-
- if ( $p['tablePrefix'] == 'get from global' ) {
- $p['tablePrefix'] = $wgDBprefix;
- }
$p['tablePrefix'] = strtoupper( $p['tablePrefix'] );
parent::__construct( $p );
Hooks::run( 'DatabaseOraclePostInit', [ $this ] );
// Defines must comply with ^define\s*([^\s=]*)\s*=\s?'\{\$([^\}]*)\}';
while ( !feof( $fp ) ) {
if ( $lineCallback ) {
- call_user_func( $lineCallback );
+ $lineCallback();
}
$line = trim( fgets( $fp, 1024 ) );
$sl = strlen( $line ) - 1;
$cmd = $this->replaceVars( $cmd );
if ( $inputCallback ) {
- call_user_func( $inputCallback, $cmd );
+ $inputCallback( $cmd );
}
$res = $this->doQuery( $cmd );
if ( $resultCallback ) {