r77806 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77805‎ | r77806 | r77807 >
Date:15:19, 5 December 2010
Author:platonides
Status:ok
Tags:
Comment:
Fix a couple of E_DEPRECATED.
PHP Deprecated: Assigning the return value of new by reference is deprecated in ./tools/alertbot/irc/alertbot.php on line 129
PHP Deprecated: Assigning the return value of new by reference is deprecated in ./tools/alertbot/irc/alertbot.php on line 135
Modified paths:
  • /trunk/tools/alertbot/irc/alertbot.php (modified) (history)

Diff [purge]

Index: trunk/tools/alertbot/irc/alertbot.php
@@ -126,13 +126,13 @@
127127 }
128128
129129 //this stuff is independent of connect and so has to be executed only once
130 - $irc = &new Net_SmartIRC(); //init new IRC connection
 130+ $irc = new Net_SmartIRC(); //init new IRC connection
131131 $irc->setDebug(SMARTIRC_DEBUG_NONE);
132132 $irc->setUseSockets(TRUE);
133133 $irc->setChannelSyncing(FALSE);
134134 $irc->setCtcpVersion("alert.bot wikimedia edition by harddisk_wp");
135135
136 - $alertbot_o=&new alertbot(); //initialize SmartIRC handlers
 136+ $alertbot_o = new alertbot(); //initialize SmartIRC handlers
137137 $irc->registerTimehandler(1000, $alertbot_o, 'check_msgs');
138138 $irc->registerTimehandler(1000, $alertbot_o, 'check_rep');
139139 $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL,"^!kill",$alertbot_o,"killmsg");

Status & tagging log