PHP 5.4 compatibility: remove call-time pass by reference

This commit is contained in:
Jean Baptiste Favre
2013-06-19 11:16:05 +02:00
parent 707dd44f6b
commit c23efdbdb0
6 changed files with 8 additions and 6 deletions

View File

@@ -267,6 +267,9 @@ class DomainStatusNetworkInstaller extends Installer
function createDatabase()
{
// Create the New DB
/* FIXME
* Extension 'mysql_' is deprecated since PHP 5.5 - use mysqli instead.
*/
$res = mysql_connect($this->host, $this->rootname, $this->rootpass);
if (!$res) {
throw new ServerException("Cannot connect to {$this->host} as {$this->rootname}.");