PDA

View Full Version : help with php code


Hippy
12-06-2010, 08:20 PM
I have a older mod on my current vb4.1.0
everything was fine.. till php was updated to 5.3.3
ez fix will be to down grade php to 5.2.*
anyway I am getting this error now
Deprecated: Assigning the return value of new by reference is deprecated in /path/file.php on line 111

and this

Warning: Cannot modify header information - headers already sent by (output started at [path]/file.php:111)

this error is from the apache error log
Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

this is the code that the errors are referring to on that line in that file


$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

what does this call?

what would bring this up to todays standard?

I will be great full to you forever ;)
thanks

--------------- Added 1291683622 at 1291683622 ---------------

solved, changed this
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());


to this

$bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());

if someone could take the time to explain a little of this to me
it would be greatly appreciated