I've hit this error when $wgDBuser didn't have access to $wgDBname.
I've also checked all other error handlers in core.
An alternative approach would be to use an anonymous function but it doesn't support $this until PHP 5.4 so it would be messier.
Change-Id: I89db2e8c88b84d9b53c4b828ac0208b05a3d3783
/**
* @param $errno
* @param $errstr
+ * @access private
*/
- protected function connectionErrorHandler( $errno, $errstr ) {
+ public function connectionErrorHandler( $errno, $errstr ) {
$this->mPHPError = $errstr;
}
* @param $errno integer
* @param $errstr string
* @return bool
+ * @access private
*/
- private function handleWarning( $errno, $errstr ) {
+ public function handleWarning( $errno, $errstr ) {
wfDebugLog( 'FSFileBackend', $errstr ); // more detailed error logging
$this->hadWarningErrors[count( $this->hadWarningErrors ) - 1] = true;
return true; // suppress from PHP handler