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

Bug #14481 About Image/Barcode/Code39.php
Submitted: 2008-08-10 00:31 UTC
From: saidbakr Assigned:
Status: Bogus Package: Image_Barcode (version 1.1.0)
PHP Version: 5.2.1 OS: Windows XP SP2
Roadmaps: (Not assigned)    
Subscription  


 [2008-08-10 00:31 UTC] saidbakr (Said Bakr)
Description: ------------ The draw() method does not produce any image and the script output is text/html Test script: --------------- <?php include('Image/Barcode/Code39.php'); $bc = new Image_Barcode_Code39('',2,4); $bc->draw('88878','png',true,120); ?> Expected result: ---------------- I expect a Barcode image Actual result: -------------- A blank white web browsers page with the following source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1256"></HEAD> <BODY></BODY></HTML>

Comments

 [2008-09-06 19:40 UTC] martinco (Martin Collins)
Hi, I wouldn't so much say this is a bug. If you include Code39 directly, the draw function returns the GD image identifier rather than actually prints out the PNG/Header Information. <?php include_once('Image/Barcode/Code39.php'); $bc = new Image_Barcode_Code39('',2,4); $img = $bc->draw('88878','png',true,220); header("Content-Type: image/png"); imagepng($img); ?> Should do exactly what you are (were?) after.
 [2010-01-26 12:04 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Bogus
This is not a bug, see explanation above.