
05-16-2011, 10:56 AM
|
 |
|
|
Join Date: Sep 2005
Location: Montreal, QC
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by micheal332001
cart.php line 342 is down to this
PHP Code:
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
so you might have something set wrong as this is vb code.
this goes for the other errors as well.
|
This is an old vB code.
Quote:
Since PHP 5, new returns a reference automatically, so using =& in this context is deprecated and produces an E_DEPRECATED message in PHP 5.3 and later, and an E_STRICT message in earlier versions. (Technically, the difference is that, in PHP 5, object variables, much like resources, are a mere pointer to the actual object data, so these object references are not "references" in the same sense used before (aliases). For more information, see Objects and references.)
http://php.net/manual/en/language.references.whatdo.php
|
So in PHP5 it is safe to use '=' instead of '=&' which new vB codes do.
And for the " ereg_replace() is deprecated" warning try using the preg_replace() instead.
Anyway thanks for your quick reply.
|