[php-maint] Bug#618680: Bug#618680: php-image-barcode: Uses depreciated methods

Thomas Goirand thomas at goirand.fr
Thu Mar 17 15:54:56 UTC 2011


On 03/17/2011 11:14 PM, Tobias Frost wrote:
> Package: php-image-barcode
> Version: 1.1.1-1
> Severity: minor
> 
> My php script on my debuggin machine tells me:
> 
> Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/Image/Barcode.php on line 80
> 
> and later
> 
> Notice: Only variable references should be returned by reference in /usr/share/php/Image/Barcode.php on line 112
> 
> I think generally not a big deal (therfore minor) but when using a high verbosity level on php, my browser tells me:
> The image “http://localhost/barcode_img.php” cannot be displayed, because it contains errors.
> 
> NB: the barcode_img.php is the exact copy of the file in the examples...

Hi,

Thanks for this report. FYI, I did at least 5 corrections to existing
PEAR packages before the release of Squeeze for that exact issue. The
patch should be fairly simple, and I will work on a new package for SID,
in order to fix the issue.

IMHO, this issue deserves a severity higher than just "minor" though, as
this is a "deprecated" issue that PHP is complaining about. Under
certain circumstances (eg: with verbosity set to high, which often many
people do in order to solve issues), the fact that the script does some
error message can destroy your image output headers, which can be very
annoying.

As I've been updating all of my packages one by one, this one will go on
top of the todo.

Thanks again for your bug report,

Thomas Goirand (zigo)





More information about the pkg-php-maint mailing list