Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deprecated: .... Errors

Posted on 2011-09-19
1
Medium Priority
?
592 Views
Last Modified: 2012-05-12
Does anybody knows causes the following errors:

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 349

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2023

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cart.php on line 2121

The code on those lines are:

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

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

$pdf =& new Cezpdf(('A4'));


0
Comment
Question by:ChrisTERiS
1 Comment
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 2000 total points
ID: 36562678
Removing the & signs will fix that.

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

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

$pdf =& new Cezpdf(('A4'));

Open in new window

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question