Revision: 1271
http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1271&view=rev
Author: kerphi
Date: 2010-04-12 10:55:16 +0000 (Mon, 12 Apr 2010)
Log Message:
-----------
Fixes PHP 5.3 warnings
Modified Paths:
--------------
trunk/src/pfccommand.class.php
trunk/src/pfccontainer.class.php
trunk/src/pfcproxycommand.class.php
trunk/src/phpfreechat.class.php
Modified: trunk/src/pfccommand.class.php
===================================================================
--- trunk/src/pfccommand.class.php 2010-04-12 10:51:06 UTC (rev 1270)
+++ trunk/src/pfccommand.class.php 2010-04-12 10:55:16 UTC (rev 1271)
@@ -67,11 +67,11 @@
if (!class_exists($cmd_classname)) { $tmp = NULL; return $tmp; }
- $cmd =& new $cmd_classname;
- $cmd->name = $cmd_name;
-
+ $firstproxy = new $cmd_classname;
+ $firstproxy->name = $cmd_name;
+
// instanciate the proxies chaine
- $firstproxy =& $cmd;
+ $proxies = array();
for($i = count($c->proxies)-1; $i >= 0; $i--)
{
$proxy_name = $c->proxies[$i];
@@ -87,11 +87,11 @@
return $firstproxy;
// instanciate the proxy
- $proxy =& new $proxy_classname;
- $proxy->name = $cmd_name;
- $proxy->proxyname = $proxy_name;
- $proxy->linkTo($firstproxy);
- $firstproxy =& $proxy;
+ $proxies[$i] = new $proxy_classname;
+ $proxies[$i]->name = $cmd_name;
+ $proxies[$i]->proxyname = $proxy_name;
+ $proxies[$i]->linkTo($firstproxy);
+ $firstproxy =& $proxies[$i];
}
/*
Modified: trunk/src/pfccontainer.class.php
===================================================================
--- trunk/src/pfccontainer.class.php 2010-04-12 10:51:06 UTC (rev 1270)
+++ trunk/src/pfccontainer.class.php 2010-04-12 10:55:16 UTC (rev 1271)
@@ -2,7 +2,7 @@
/**
* pfccontainer.class.php
*
- * Copyright \xA9 2006 Stephane Gully <ste...@gm...>
+ * Copyright � 2006 Stephane Gully <ste...@gm...>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -54,7 +54,7 @@
// create the concrete container instance
require_once dirname(__FILE__)."/containers/".$type.".class.php";
$container_classname = "pfcContainer_".$type;
- $this->_container =& new $container_classname();
+ $this->_container = new $container_classname();
}
function getDefaultConfig()
{
Modified: trunk/src/pfcproxycommand.class.php
===================================================================
--- trunk/src/pfcproxycommand.class.php 2010-04-12 10:51:06 UTC (rev 1270)
+++ trunk/src/pfcproxycommand.class.php 2010-04-12 10:55:16 UTC (rev 1271)
@@ -50,7 +50,7 @@
function linkTo(&$cmd)
{
- $this->next =& $cmd;
+ $this->next = $cmd;
}
}
Modified: trunk/src/phpfreechat.class.php
===================================================================
--- trunk/src/phpfreechat.class.php 2010-04-12 10:51:06 UTC (rev 1270)
+++ trunk/src/phpfreechat.class.php 2010-04-12 10:55:16 UTC (rev 1271)
@@ -219,7 +219,7 @@
if ($c->debug) ob_start(); // capture output
- $xml_reponse =& new pfcResponse();
+ $xml_reponse = new pfcResponse();
// check the command
$cmdstr = "";
@@ -348,7 +348,7 @@
function &loadStyles($theme = 'default', &$xml_reponse)
{
- if ($xml_reponse == null) $xml_reponse =& new pfcResponse();
+ if ($xml_reponse == null) $xml_reponse = new pfcResponse();
$c =& pfcGlobalConfig::Instance();
@@ -398,7 +398,7 @@
function &loadScripts($theme, &$xml_reponse)
{
- if ($xml_reponse == null) $xml_reponse =& new pfcResponse();
+ if ($xml_reponse == null) $xml_reponse = new pfcResponse();
$c =& pfcGlobalConfig::Instance();
@@ -529,7 +529,7 @@
function loadInterface($theme = 'default', &$xml_reponse)
{
- if ($xml_reponse == null) $xml_reponse =& new pfcResponse();
+ if ($xml_reponse == null) $xml_reponse = new pfcResponse();
$c =& pfcGlobalConfig::Instance();
@@ -559,7 +559,7 @@
function &loadChat($theme = 'default')
{
- $xml_reponse =& new pfcResponse();
+ $xml_reponse = new pfcResponse();
$this->loadInterface($theme,$xml_reponse);
$this->loadStyles($theme,$xml_reponse);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|