From d9d303db6d3244d54d4bcc6ac197b469743de0e8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 7 Jan 2010 23:44:33 +0000 Subject: [PATCH] remove reference from $obj =& new obj() constructs, to get ride of depricated warnings in php5.3 --- phpgwapi/inc/xajax/xajax_core/legacy.inc.php | 2 +- .../plugin_layer/support/xajaxCallableObject.inc.php | 2 +- .../xajax_core/plugin_layer/xajaxCallableObjectPlugin.inc.php | 2 +- .../xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php | 4 ++-- .../xajax/xajax_core/plugin_layer/xajaxFunctionPlugin.inc.php | 2 +- .../xajax/xajax_core/plugin_layer/xajaxScriptPlugin.inc.php | 2 +- phpgwapi/inc/xajax/xajax_core/xajax.inc.php | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/phpgwapi/inc/xajax/xajax_core/legacy.inc.php b/phpgwapi/inc/xajax/xajax_core/legacy.inc.php index 3de9dc438b..ed4dc60a10 100644 --- a/phpgwapi/inc/xajax/xajax_core/legacy.inc.php +++ b/phpgwapi/inc/xajax/xajax_core/legacy.inc.php @@ -36,7 +36,7 @@ class legacyXajax extends xajax { } function registerExternalFunction($mFunction, $sInclude) { - $xuf =& new xajaxUserFunction($mFunction, $sInclude); + $xuf = new xajaxUserFunction($mFunction, $sInclude); $this->register(XAJAX_FUNCTION, $xuf); } function registerCatchAllFunction($mFunction) diff --git a/phpgwapi/inc/xajax/xajax_core/plugin_layer/support/xajaxCallableObject.inc.php b/phpgwapi/inc/xajax/xajax_core/plugin_layer/support/xajaxCallableObject.inc.php index 25a6f1f22d..642e21c34a 100644 --- a/phpgwapi/inc/xajax/xajax_core/plugin_layer/support/xajaxCallableObject.inc.php +++ b/phpgwapi/inc/xajax/xajax_core/plugin_layer/support/xajaxCallableObject.inc.php @@ -115,7 +115,7 @@ class xajaxCallableObject if ($sClass == $sMethodName) $bInclude = false; if ($bInclude) - $aRequests[strtolower($sMethodName)] =& + $aRequests[strtolower($sMethodName)] = new xajaxRequest("{$sXajaxPrefix}{$sClass}.{$sMethodName}"); } diff --git a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxCallableObjectPlugin.inc.php b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxCallableObjectPlugin.inc.php index 4b67fb50b7..1f636b86c4 100644 --- a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxCallableObjectPlugin.inc.php +++ b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxCallableObjectPlugin.inc.php @@ -121,7 +121,7 @@ class xajaxCallableObjectPlugin extends xajaxRequestPlugin //EndSkipDebug if (false === is_a($xco, 'xajaxCallableObject')) - $xco =& new xajaxCallableObject($xco); + $xco = new xajaxCallableObject($xco); if (2 < count($aArgs)) if (is_array($aArgs[2])) diff --git a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php index 3347b61204..95e6e1781e 100644 --- a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php +++ b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php @@ -127,7 +127,7 @@ class xajaxEventPlugin extends xajaxRequestPlugin if (false === isset($this->aEvents[$sEvent])) { - $xe =& new xajaxEvent($sEvent); + $xe = new xajaxEvent($sEvent); if (2 < count($aArgs)) if (is_array($aArgs[2])) @@ -151,7 +151,7 @@ class xajaxEventPlugin extends xajaxRequestPlugin $xuf =& $aArgs[2]; if (false === is_a($xuf, 'xajaxUserFunction')) - $xuf =& new xajaxUserFunction($xuf); + $xuf = new xajaxUserFunction($xuf); $objEvent =& $this->aEvents[$sEvent]; $objEvent->addHandler($xuf); diff --git a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxFunctionPlugin.inc.php b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxFunctionPlugin.inc.php index 601c3801e6..6622520d1b 100644 --- a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxFunctionPlugin.inc.php +++ b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxFunctionPlugin.inc.php @@ -132,7 +132,7 @@ class xajaxFunctionPlugin extends xajaxRequestPlugin $xuf =& $aArgs[1]; if (false === is_a($xuf, 'xajaxUserFunction')) - $xuf =& new xajaxUserFunction($xuf); + $xuf = new xajaxUserFunction($xuf); if (2 < count($aArgs)) if (is_array($aArgs[2])) diff --git a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxScriptPlugin.inc.php b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxScriptPlugin.inc.php index 2173a239fe..0fe5962606 100644 --- a/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxScriptPlugin.inc.php +++ b/phpgwapi/inc/xajax/xajax_core/plugin_layer/xajaxScriptPlugin.inc.php @@ -240,7 +240,7 @@ class xajaxScriptPlugin extends xajaxRequestPlugin if ('style' == $this->sRequest) $sType = 'text/css'; - $objResponse =& new xajaxCustomResponse($sType); + $objResponse = new xajaxCustomResponse($sType); foreach ($aSections as $sSection) $objResponse->append($sSection . "\n"); diff --git a/phpgwapi/inc/xajax/xajax_core/xajax.inc.php b/phpgwapi/inc/xajax/xajax_core/xajax.inc.php index 5bc1c85098..8215ac08f4 100644 --- a/phpgwapi/inc/xajax/xajax_core/xajax.inc.php +++ b/phpgwapi/inc/xajax/xajax_core/xajax.inc.php @@ -357,7 +357,7 @@ class xajax $xuf =& $aArgs[2]; if (false == is_a($xuf, 'xajaxUserFunction')) - $xuf =& new xajaxUserFunction($xuf); + $xuf = new xajaxUserFunction($xuf); $this->aProcessingEvents[$sEvent] =& $xuf; @@ -1302,7 +1302,7 @@ class xajax */ function registerFunction($mFunction, $sIncludeFile=null) { - $xuf =& new xajaxUserFunction($mFunction, $sIncludeFile); + $xuf = new xajaxUserFunction($mFunction, $sIncludeFile); return $this->register(XAJAX_FUNCTION, $xuf); }