0

I am having problems when I run my salesreport.php

A PHP Error was encountered

Severity: 8192

Message: Assigning the return value of new by reference is deprecated

Filename: controllers/salesreport.php

Line Number: 390

I checked line 390 and here is the code

$pdf =& new Cezpdf('LETTER', 'landscape');

What should I do?
I am running xampp on localhost. Someone told me that my localhost is the problem

2
Contributors
1
Reply
3
Views
5 Years
Discussion Span
Last Post by diafol
2

=& means to pass by reference. Had to do it in PHP4. I *think* that PHP5 passes all vars by reference anyway, so the & is not req'd. Try:

$pdf = new Cezpdf('LETTER', 'landscape');
Votes + Comments
Thank you
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.