diff --git a/htdocs/lib/stringparser_bbcode/stringparser.class.php b/htdocs/lib/stringparser_bbcode/stringparser.class.php index b4b2e8167b8d1f93455646f7e7696dcbd63f5218..46f78f3fb22b2bcd3872d28a009a66a9eaa0602b 100644 --- a/htdocs/lib/stringparser_bbcode/stringparser.class.php +++ b/htdocs/lib/stringparser_bbcode/stringparser.class.php @@ -282,7 +282,7 @@ class StringParser { StringParser_Node::destroyNode ($this->_root); } unset ($this->_root); - $this->_root =& new StringParser_Node_Root (); + $this->_root = new StringParser_Node_Root (); $this->_stack[0] =& $this->_root; $this->_parserInit (); @@ -979,7 +979,7 @@ class StringParser_Node { function appendToLastTextChild ($text) { $ccount = count ($this->_children); if ($ccount == 0 || $this->_children[$ccount-1]->_type != STRINGPARSER_NODE_TEXT) { - $ntextnode =& new StringParser_Node_Text ($text); + $ntextnode = new StringParser_Node_Text ($text); return $this->appendChild ($ntextnode); } else { $this->_children[$ccount-1]->appendText ($text); diff --git a/htdocs/lib/stringparser_bbcode/stringparser_bbcode.class.php b/htdocs/lib/stringparser_bbcode/stringparser_bbcode.class.php index 338eb12aeb34c66764ba4bf565e16199fed2912a..7db60e062334d3a435360b65b4afa654ec87e97c 100644 --- a/htdocs/lib/stringparser_bbcode/stringparser_bbcode.class.php +++ b/htdocs/lib/stringparser_bbcode/stringparser_bbcode.class.php @@ -564,7 +564,7 @@ class StringParser_BBCode extends StringParser { return true; } if ($needle == '[') { - $node =& new StringParser_BBCode_Node_Element ($this->_cpos); + $node = new StringParser_BBCode_Node_Element ($this->_cpos); $res = $this->_pushNode ($node); if (!$res) { return false; @@ -1207,7 +1207,7 @@ class StringParser_BBCode extends StringParser { for ($i = 0; $i < count ($sub_nodes); $i++) { if (!$last_node_was_paragraph || ($prevtype == $sub_nodes[$i]->_type && ($i != 0 || $prevtype != STRINGPARSER_BBCODE_NODE_ELEMENT))) { unset ($paragraph); - $paragraph =& new StringParser_BBCode_Node_Paragraph (); + $paragraph = new StringParser_BBCode_Node_Paragraph (); } $prevtype = $sub_nodes[$i]->_type; if ($sub_nodes[$i]->_type != STRINGPARSER_BBCODE_NODE_ELEMENT || $sub_nodes[$i]->getFlag ('paragraph_type', 'integer', BBCODE_PARAGRAPH_ALLOW_BREAKUP) != BBCODE_PARAGRAPH_BLOCK_ELEMENT) { @@ -1218,7 +1218,7 @@ class StringParser_BBCode extends StringParser { $dest_nodes[] =& $sub_nodes[$i]; $last_onde_was_paragraph = false; unset ($paragraph); - $paragraph =& new StringParser_BBCode_Node_Paragraph (); + $paragraph = new StringParser_BBCode_Node_Paragraph (); } } } @@ -1261,7 +1261,7 @@ class StringParser_BBCode extends StringParser { if ($node->_type == STRINGPARSER_NODE_TEXT) { $cpos = 0; while (($npos = strpos ($node->content, $detect_string, $cpos)) !== false) { - $subnode =& new StringParser_Node_Text (substr ($node->content, $cpos, $npos - $cpos), $node->occurredAt + $cpos); + $subnode = new StringParser_Node_Text (substr ($node->content, $cpos, $npos - $cpos), $node->occurredAt + $cpos); // copy flags foreach ($node->_flags as $flag => $value) { if ($flag == 'newlinemode.begin') { @@ -1278,7 +1278,7 @@ class StringParser_BBCode extends StringParser { unset ($subnode); $cpos = $npos + strlen ($detect_string); } - $subnode =& new StringParser_Node_Text (substr ($node->content, $cpos), $node->occurredAt + $cpos); + $subnode = new StringParser_Node_Text (substr ($node->content, $cpos), $node->occurredAt + $cpos); if ($cpos == 0) { $value = $node->getFlag ('newlinemode.begin', 'integer', null); if ($value !== null) { @@ -1532,7 +1532,7 @@ class StringParser_BBCode_Node_Element extends StringParser_Node { * @return object */ function &duplicate () { - $newnode =& new StringParser_BBCode_Node_Element ($this->occurredAt); + $newnode = new StringParser_BBCode_Node_Element ($this->occurredAt); $newnode->_name = $this->_name; $newnode->_flags = $this->_flags; $newnode->_attributes = $this->_attributes;