Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.3

Bug #19390 UPC-A image is not quite right
Submitted: 2012-04-20 08:07 UTC
From: ryanmc Assigned: gemorroj
Status: Closed Package: Image_Barcode2 (version 0.2.1)
PHP Version: 5.2.17 OS: CentOS release 5.8
Roadmaps: (Not assigned)    
Subscription  


 [2012-04-20 08:07 UTC] ryanmc (Ryan McLaughlin)
Description: ------------ When using the test script that comes with the package I noticed that the image generated for the UPC-A barcode is not quite correct. There should be 3 sets of longer bars, on on the left, one in the middle, and one on the right. however the test script only generates longer bars on the left. Test script: --------------- I am using the test script that comes with the package. Expected result: ---------------- 3 sets of longer bars, on on the left, one in the middle, and one on the right Actual result: -------------- test script only generates longer bars on the left

Comments

 [2012-04-20 08:21 UTC] ryanmc (Ryan McLaughlin)
I just tried scanning all the barcodes with an app on my phone and all of them scanned quickly except the UPC-A barcode.
 [2012-04-20 08:26 UTC] ryanmc (Ryan McLaughlin)
nevermind the last bit, it was not scanning because the barcode was invalid, I had to change the last digit to 8 for it to be valid.
 [2012-04-20 08:51 UTC] ryanmc (Ryan McLaughlin)
Ok this is failry easy to fix I just had to change several references of $this- >getBarcodeHeight() to $barcodelongheight I tried to submit my new file, but it would not let me, so I will just tell you he line numbers that I changed 266 278 322 339 352
 [2012-04-20 12:12 UTC] gemorroj (Gemor Roj)
-Status: Open +Status: Closed -Assigned To: +Assigned To: gemorroj
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. thanks! fixed in git https://github.com/pear/Image_Barcode2