Index: branches/RC/core/kernel/parser/construct_tags.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/core/kernel/parser/construct_tags.php (.../construct_tags.php) (revision 8929) +++ branches/RC/core/kernel/parser/construct_tags.php (.../construct_tags.php) (revision 9286) @@ -66,7 +66,7 @@ $inverse = $this->GetParam('inverse'); if ($prefix !== false) { - $tag =& new Tag('', $this->Parser); + $tag = new Tag('', $this->Parser); $tag->Tag = $function; $tmp = $this->Application->processPrefix($prefix); @@ -183,7 +183,7 @@ } if ($this->Tag == 'RenderElement') { $this->NP['name'] = '__lambda_element_'.abs(crc32($this->TemplateName)).'_'.$this->Application->LambdaElements++; - $RenderTag =& new Tag($this->TagData.' name="'.$this->NP['name'].'"', $this->Parser); + $RenderTag = new Tag($this->TagData.' name="'.$this->NP['name'].'"', $this->Parser); $this->Parser->AppendCode($RenderTag->GetCode()); } $this->Parser->Recurve($this); //Saving current tag in parser recursion array @@ -266,7 +266,7 @@ $real_name = $this->Parser->AppendCompiledFunction($this->BlockName, $f_body); if ($this->Tag == 'RenderElement') { - $RenderTag =& new Tag($this->TagData.' name="'.$this->BlockName.'"', $this->Parser); + $RenderTag = new Tag($this->TagData.' name="'.$this->BlockName.'"', $this->Parser); // $this->Parser->AppendCompiledCode($RenderTag->GetCode()); // for compilation run Index: branches/RC/core/kernel/processors/tag_processor.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 8929) +++ branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 9286) @@ -26,7 +26,7 @@ $tag_mapping = $aggregator->GetArrayValue($tag->Prefix, $Method); if ($tag_mapping) { - $mapped_tag =& new Tag('', $this->Application->Parser); + $mapped_tag = new Tag('', $this->Application->Parser); $mapped_tag->CopyFrom($tag); $mapped_tag->Processor = $tag_mapping[0]; $mapped_tag->Tag = $tag_mapping[1]; @@ -208,7 +208,7 @@ $this->Application->ApplicationDie ("Filepath and ClassName for prefix $prefix not defined while processing ".htmlspecialchars($tag->GetFullTag())."!"); include_once($this->Prefixes[$prefix]['path']); $ClassName = $this->Prefixes[$prefix]['class']; - $a_processor =& new $ClassName($prefix); + $a_processor = new $ClassName($prefix); $this->SetProcessor($prefix, $a_processor); } Index: branches/RC/kernel/include/advsearch.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/kernel/include/advsearch.php (.../advsearch.php) (revision 8929) +++ branches/RC/kernel/include/advsearch.php (.../advsearch.php) (revision 9286) @@ -152,7 +152,7 @@ 'Category' => 'clsCatList'); $list_class = getArrayValue($classes, $TableName); if ($list_class) { - $objList =& new $list_class(); + $objList = new $list_class(); } $prefix_fields = $this->Application->getUnitOption($main_prefix, 'Fields'); Index: branches/RC/core/kernel/parser/tags.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/core/kernel/parser/tags.php (.../tags.php) (revision 8929) +++ branches/RC/core/kernel/parser/tags.php (.../tags.php) (revision 9286) @@ -16,7 +16,7 @@ function &GetTag($tag_data, &$parser, $inp_tag = 0) { if (!isset($this->_Tag)) { - $this->_Tag =& new Tag($tag_data, $parser, $inp_tag); + $this->_Tag = new Tag($tag_data, $parser, $inp_tag); } else { // $this->_Tag->Parser =& $parser; @@ -182,7 +182,7 @@ function ParseNamedParams($params_str) { - $params =& new Params($params_str); + $params = new Params($params_str); $this->NamedParams = $params->_Params; } @@ -208,12 +208,12 @@ } if ($this->Processor == 'm' || $this->Processor == 'm_TagProcessor') { //if we are procssing Main tags if ($this->Tag == 'block' || $this->Tag == 'DefineElement' || ($this->Tag == 'RenderElement' && $short_closing)) { - $tag =& new BlockTag('', $this->Parser); + $tag = new BlockTag('', $this->Parser); $tag->CopyFrom($this); $tag->Process(); } elseif($this->Tag == 'Capture') { - $tag =& new CaptureTag('', $this->Parser); + $tag = new CaptureTag('', $this->Parser); $tag->CopyFrom($this); $tag->Process(); } @@ -230,7 +230,7 @@ if ( defined('EXPERIMENTAL_PRE_PARSE') ) { $this->Parser->AppendCompiledCode( $this->GetCode() ); } - $tag =& new ConstructTag('', $this->Parser); + $tag = new ConstructTag('', $this->Parser); $tag->CopyFrom($this); $tag->Process(); } Index: branches/RC/core/kernel/parser/template.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/core/kernel/parser/template.php (.../template.php) (revision 8929) +++ branches/RC/core/kernel/parser/template.php (.../template.php) (revision 9286) @@ -141,7 +141,7 @@ { list ($path, $module_filename) = $this->GetTemplatePaths($filename); - $template =& new Template($path, $module_filename, $silent); + $template = new Template($path, $module_filename, $silent); if (!isset($title)) $title = $filename; $this->SetTemplate($title, $template); } @@ -183,14 +183,14 @@ function SetTemplateBody($title, $body) { - $template =& new Template(); + $template = new Template(); $template->SetBody($body); $this->SetTemplate($title, $template); } function ParseTemplate($template_name) { - $Parser =& new TemplateParser($this->Application); + $Parser = new TemplateParser($this->Application); return $Parser->Parse( $this->GetTemplateBody($template_name) ); } Index: branches/RC/core/kernel/parser/template_parser.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 8929) +++ branches/RC/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 9286) @@ -599,7 +599,7 @@ global $debugger; $debugger->appendHTML('mode: '.$this->SkipModeName().' tag '.$debugger->highlightString($tag_data).' in '.$debugger->getFileLink($debugger->getLocalFile(FULL_PATH.THEMES_PATH.'/'.$this->TemplateName).'.tpl', $this->CurrentLineNumber(), '', true)); } -// $tag =& new MyTag($tag_data, $this); +// $tag = new MyTag($tag_data, $this); $tag =& $this->TagHolder->GetTag($tag_data, $this); if (!$this->CheckRecursion($tag)) //we do NOT process closing tags Index: branches/RC/core/kernel/nparser/nparser.php =================================================================== diff -u -N -r8963 -r9286 --- branches/RC/core/kernel/nparser/nparser.php (.../nparser.php) (revision 8963) +++ branches/RC/core/kernel/nparser/nparser.php (.../nparser.php) (revision 9286) @@ -224,7 +224,7 @@ return false; } if (!$pre_parsed || !$pre_parsed['active'] || defined('DBG_NPARSER_FORCE_COMPILE') && DBG_NPARSER_FORCE_COMPILE) { - $inc_parser =& new NParser(); + $inc_parser = new NParser(); if (!$inc_parser->Compile($pre_parsed)) return false; } return $pre_parsed; Index: branches/RC/core/units/categories/cache_updater.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 8929) +++ branches/RC/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 9286) @@ -211,7 +211,7 @@ function InitUpdater() { - $this->Stack =& new clsRecursionStack(); + $this->Stack = new clsRecursionStack(); $this->initData(); } @@ -234,7 +234,7 @@ $this->Stack = $tmp['stack']; } else { - $this->Stack =& new clsRecursionStack(); + $this->Stack = new clsRecursionStack(); } } Index: branches/RC/kernel/include/globals.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/kernel/include/globals.php (.../globals.php) (revision 8929) +++ branches/RC/kernel/include/globals.php (.../globals.php) (revision 9286) @@ -1332,7 +1332,7 @@ function GetOptions($field) // by Alex { // get dropdown values from custom field - $tmp =& new clsCustomField(); + $tmp = new clsCustomField(); $tmp->LoadFromDatabase($field, 'FieldName'); $tmp_values = $tmp->Get('ValueList'); Index: branches/RC/core/kernel/session/session.php =================================================================== diff -u -N -r9259 -r9286 --- branches/RC/core/kernel/session/session.php (.../session.php) (revision 9259) +++ branches/RC/core/kernel/session/session.php (.../session.php) (revision 9286) @@ -41,7 +41,7 @@ Usage: -$session =& new Session(smAUTO); //smAUTO is default, you could just leave the brackets empty, or provide another mode +$session = new Session(smAUTO); //smAUTO is default, you could just leave the brackets empty, or provide another mode $session->SetCookieDomain('my.domain.com'); $session->SetCookiePath('/myscript'); @@ -402,7 +402,7 @@ $this->Checkers = Array(); $this->InitStorage($special); - $this->Data =& new Params(); + $this->Data = new Params(); $tmp_sid = $this->GetPassedSIDValue(); @@ -718,7 +718,7 @@ function Destroy() { $this->Storage->DeleteSession($this); - $this->Data =& new Params(); + $this->Data = new Params(); $this->SID = ''; if ($this->CookiesEnabled) $this->SetSessionCookie(); //will remove the cookie due to value (sid) is empty $this->SetSession(); //will create a new session Index: branches/RC/kernel/include/parseditem.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/kernel/include/parseditem.php (.../parseditem.php) (revision 8929) +++ branches/RC/kernel/include/parseditem.php (.../parseditem.php) (revision 9286) @@ -697,7 +697,7 @@ function &GetDummy() // new by Alex { if( !isset($this->Dummy) ) - $this->Dummy =& new $this->classname(); + $this->Dummy = new $this->classname(); $this->Dummy->tablename = $this->SourceTable; return $this->Dummy; } Index: branches/RC/core/units/general/xml_helper.php =================================================================== diff -u -N -r8929 -r9286 --- branches/RC/core/units/general/xml_helper.php (.../xml_helper.php) (revision 8929) +++ branches/RC/core/units/general/xml_helper.php (.../xml_helper.php) (revision 9286) @@ -23,7 +23,7 @@ xml_set_element_handler( $xml_parser, Array(&$this, 'startElement'), Array(&$this, 'endElement') ); xml_set_character_data_handler( $xml_parser, Array(&$this, 'characterData') ); if (!xml_parse($xml_parser, $xml, 1)) { - $this->RootElement =& new kXMLNode('ERROR', array('code'=>xml_get_error_code($xml_parser),'message'=>xml_error_string(xml_get_error_code($xml_parser)))); + $this->RootElement = new kXMLNode('ERROR', array('code'=>xml_get_error_code($xml_parser),'message'=>xml_error_string(xml_get_error_code($xml_parser)))); trigger_error(sprintf('XML error: %s at line %d', xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser)), E_USER_WARNING); @@ -35,7 +35,7 @@ function startElement(&$Parser, &$Elem, $Attrs) { $parent =& $this->CurrentElement; - $this->CurrentElement =& new kXMLNode($Elem, $Attrs); + $this->CurrentElement = new kXMLNode($Elem, $Attrs); if (is_null($this->RootElement)) { $this->RootElement =& $this->CurrentElement; }