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

@ -179,8 +179,7 @@ class ProfilecompletionAction extends Action
else { else {
$cnt = $profile->find(); $cnt = $profile->find();
} }
// @todo FIXME: Call-time pass-by-reference has been deprecated. Event::handle('EndProfileCompletionSearch', $this, $profile, $search_engine);
Event::handle('EndProfileCompletionSearch', $this, &$profile, $search_engine);
} }
while ($profile->fetch()) { while ($profile->fetch()) {

View File

@ -109,7 +109,7 @@ class AimPlugin extends ImPlugin
function onStartImDaemonIoManagers(&$classes) function onStartImDaemonIoManagers(&$classes)
{ {
parent::onStartImDaemonIoManagers(&$classes); parent::onStartImDaemonIoManagers($classes);
$classes[] = new AimManager($this); // handles sending/receiving $classes[] = new AimManager($this); // handles sending/receiving
return true; return true;
} }

View File

@ -267,6 +267,9 @@ class DomainStatusNetworkInstaller extends Installer
function createDatabase() function createDatabase()
{ {
// Create the New DB // 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); $res = mysql_connect($this->host, $this->rootname, $this->rootpass);
if (!$res) { if (!$res) {
throw new ServerException("Cannot connect to {$this->host} as {$this->rootname}."); throw new ServerException("Cannot connect to {$this->host} as {$this->rootname}.");

View File

@ -147,7 +147,7 @@ class IrcPlugin extends ImPlugin {
* @return boolean * @return boolean
*/ */
public function onStartImDaemonIoManagers(&$classes) { public function onStartImDaemonIoManagers(&$classes) {
parent::onStartImDaemonIoManagers(&$classes); parent::onStartImDaemonIoManagers($classes);
$classes[] = new IrcManager($this); // handles sending/receiving $classes[] = new IrcManager($this); // handles sending/receiving
return true; return true;
} }

View File

@ -120,7 +120,7 @@ class MsnPlugin extends ImPlugin {
* @return boolean * @return boolean
*/ */
public function onStartImDaemonIoManagers(&$classes) { public function onStartImDaemonIoManagers(&$classes) {
parent::onStartImDaemonIoManagers(&$classes); parent::onStartImDaemonIoManagers($classes);
$classes[] = new MsnManager($this); // handles sending/receiving $classes[] = new MsnManager($this); // handles sending/receiving
return true; return true;
} }

View File

@ -310,7 +310,7 @@ class XmppPlugin extends ImPlugin
function onStartImDaemonIoManagers(&$classes) function onStartImDaemonIoManagers(&$classes)
{ {
parent::onStartImDaemonIoManagers(&$classes); parent::onStartImDaemonIoManagers($classes);
$classes[] = new XmppManager($this); // handles pings/reconnects $classes[] = new XmppManager($this); // handles pings/reconnects
return true; return true;
} }