Edit report at https://pear.php.net/bugs/bug.php?id=19145&edit=1
ID: 19145
Updated by: [email protected]
Reported By: e dot mazovetskiy at gmail dot com
Summary: wrong function call
Status: Open
Type: Bug
Package: Image_Barcode2
Operating System: Ubuntu 4.9
Package Version: 0.1.0
PHP Version: 5.3.2
Roadmap Versions:
New Comment:
Thanks for the heads up!
Previous Comments:
------------------------------------------------------------------------
[2011-12-18 23:21:10] em86
Description:
------------
Barcode2.php - error on line 85
should be:
$img = $obj->image($text, $imgtype);
instead of:
$img = $obj->draw($text, $imgtype);
Test script:
---------------
require_once('Image/Barcode2.php');///usr/share/php/
Image_Barcode2::draw('12345678901234', 'Code39');
Expected result:
----------------
image with barcode expected
Actual result:
--------------
Warning: include_once(Image/Barcode2/png.php): failed to open stream: No
such file or directory in /usr/share/php/Image/Barcode2.php on line 70
Warning: include_once(): Failed opening 'Image/Barcode2/png.php' for
inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/php/Image/Barcode2.php on line 70
------------------------------------------------------------------------