Discovered while debugging I7a4071072d802a82ecf7d16fbf8882ff8c79287f
DatabaseIntegration test alters the delimiter for the database instance
and it never gets set back.
Simply set the delimiter back to a default value at the start of
sourceSteam (for each new file pointer) which could have a new
delimiter.
Change-Id: Ib829b1c8d87271526fa6826910d40c304c778b32
$fname = __METHOD__,
callable $inputCallback = null
) {
+ $delimiterReset = new ScopedCallback(
+ function ( $delimiter ) {
+ $this->delimiter = $delimiter;
+ },
+ [ $this->delimiter ]
+ );
$cmd = '';
while ( !feof( $fp ) ) {
}
}
+ ScopedCallback::consume( $delimiterReset );
return true;
}