Page MenuHomePhabricator

dumpBackup gives error for DatabaseMysql::setTimeout()
Closed, DeclinedPublic

Description

Author: tderouin

Description:
Just calling this from the command line:

[root@dev wiki112]# /usr/local/bin/php /var/www/html/wiki/maintenance/dumpBackup.php --current --quiet
Fatal error: Call to undefined method DatabaseMysql::setTimeout() in /var/www/html/wiki112/maintenance/backup.inc on line 228

We're using MySQL 4.1, Apache 2.2, PHP 5.2.4


Version: 1.12.x
Severity: minor
OS: Linux
Platform: Other

Details

Reference
bz14441

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:10 PM
bzimport set Reference to bz14441.
bzimport added a subscriber: Unknown Object (MLST).

I'm staring right at it in Database.php...

public function setTimeout( $timeout ) {

		$this->query( "SET net_read_timeout=$timeout" );
		$this->query( "SET net_write_timeout=$timeout" );

}

tderouin wrote:

Yes. It's there for me too, but did you try running the command? It doesn't work.

tderouin wrote:

After I cleanly install a version of MW 1.12.0, it does not work for me:

[root@dev mediawiki-1.12.0]# /usr/local/bin/php /var/www/html/wiki/maintenance/dumpBackup.php --current --quiet
Fatal error: Call to undefined method DatabaseMysql::setTimeout() in /var/www/html/mediawiki-1.12.0/maintenance/backup.inc on line 228

Just to let you know.