<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Image_Barcode</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/14481" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13794" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10594" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/14481">
      <title>Image_Barcode: Bug 14481 [Open] About Image/Barcode/Code39.php</title>
      <link>http://pear.php.net/bugs/14481</link>
      <content:encoded><![CDATA[<pre>Image_Barcode Bug
Reported by saidbakr
2008-08-09T19:31:45+00:00
PHP: 5.2.1 OS: Windows XP SP2 Package Version: 1.1.0

Description:
------------
The draw() method does not produce any image and the script output is text/html

Test script:
---------------
&lt;?php
include('Image/Barcode/Code39.php');
$bc = new Image_Barcode_Code39('',2,4);
$bc-&gt;draw('88878','png',true,120);
?&gt;

Expected result:
----------------
I expect a Barcode image

Actual result:
--------------
A blank white web browsers page with the following source:

&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=windows-1256&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>Image_Barcode Bug
Reported by saidbakr
2008-08-09T19:31:45+00:00
PHP: 5.2.1 OS: Windows XP SP2 Package Version: 1.1.0

Description:
------------
The draw() method does not produce any image and the script output is text/html

Test script:
---------------
&lt;?php
include('Image/Barcode/Code39.php');
$bc = new Image_Barcode_Code39('',2,4);
$bc-&gt;draw('88878','png',true,120);
?&gt;

Expected result:
----------------
I expect a Barcode image

Actual result:
--------------
A blank white web browsers page with the following source:

&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=windows-1256&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;</pre>]]></description>
      <dc:date>2008-08-09T19:31:45+00:00</dc:date>
      <dc:creator>said &amp;#x64;&amp;#111;&amp;#x74; fox &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Image_Barcode Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13794">
      <title>Image_Barcode: Bug 13794 [Open] Some numbers produce malformed &quot;UPC A&quot; barcodes</title>
      <link>http://pear.php.net/bugs/13794</link>
      <content:encoded><![CDATA[<pre>Image_Barcode Bug
Reported by sframe
2008-04-28T15:12:20+00:00
PHP: 5.2.4 OS: &quot;OS 10.4.11&quot; and &quot;Ubuntu 8.04&quot; Package Version: 1.1.0

Description:
------------
This fellow's website produces UPC A codes correctly:
http://jkbworld.com/doc/imagebarcode-upca.php

When I try to use this number 764262044911 for UPC A I get a 
malformed barcode that will not scan.

764262044911 generated by GNUBarcode, will scan correctly.


Test script:
---------------
&lt;?php

require_once(&quot;Image/Barcode.php&quot;);

$num = isset($_REQUEST['num']) ? $_REQUEST['num'] : '764262044911';
$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'upca';
$imgtype = isset($_REQUEST['imgtype']) ? $_REQUEST['imgtype'] : 'png';

Image_Barcode::draw($num, $type, $imgtype);

?&gt;



Expected result:
----------------
Produce a scannable image

Actual result:
--------------
Left half of barcode appears to be malformed.

Right half of barcode appears to be correct.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Image_Barcode Bug
Reported by sframe
2008-04-28T15:12:20+00:00
PHP: 5.2.4 OS: &quot;OS 10.4.11&quot; and &quot;Ubuntu 8.04&quot; Package Version: 1.1.0

Description:
------------
This fellow's website produces UPC A codes correctly:
http://jkbworld.com/doc/imagebarcode-upca.php

When I try to use this number 764262044911 for UPC A I get a 
malformed barcode that will not scan.

764262044911 generated by GNUBarcode, will scan correctly.


Test script:
---------------
&lt;?php

require_once(&quot;Image/Barcode.php&quot;);

$num = isset($_REQUEST['num']) ? $_REQUEST['num'] : '764262044911';
$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'upca';
$imgtype = isset($_REQUEST['imgtype']) ? $_REQUEST['imgtype'] : 'png';

Image_Barcode::draw($num, $type, $imgtype);

?&gt;



Expected result:
----------------
Produce a scannable image

Actual result:
--------------
Left half of barcode appears to be malformed.

Right half of barcode appears to be correct.</pre>]]></description>
      <dc:date>2008-05-03T01:41:33+00:00</dc:date>
      <dc:creator>sframe &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Image_Barcode Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10594">
      <title>Image_Barcode: Feature/Change Request 10594 [Open] $bSendToBrowser - &quot;Only variable references should be returned by reference&quot;</title>
      <link>http://pear.php.net/bugs/10594</link>
      <content:encoded><![CDATA[<pre>Image_Barcode Feature/Change Request
Reported by permafour
2007-04-02T15:16:03+00:00
PHP: 5.2.1 OS: SuSE 10.0 Package Version: 1.1.0

Description:
------------
When the $bSendToBrowser option is enabled in Image::Barcode-&gt;draw(), PHP Notice messages are generated at each draw.

A patch to fix this:


--- Barcode.php 2007-04-02 11:25:26.000000000 -0400
+++ Barcode.new.php     2007-04-02 16:00:34.000000000 -0400
@@ -106,9 +106,8 @@
                     imagedestroy($img);
                     break;
             }
-        } else {
-            return $img;
-        }
+       }
+        return $img;
     }
 }
 ?&gt;

Test script:
---------------
&lt;?php
require_once('Image/Barcode.php');

$BarCodeObj = new Image_Barcode();
$BarCodeObj-&gt;draw(1234,'code128','gif');

?&gt;


Expected result:
----------------
Barcode printed to browser without error messages.

Actual result:
--------------
Barcode is printed to browser, but a PHP Notice is printed to the error log:

[Mon Apr 02 16:04:57 2007] [error] [client x.x.x.x] PHP Notice:  Only variable references should be returned by reference in /usr/local/php/lib/php/Image/Barcode.php on line 112</pre>]]></content:encoded>
      <description><![CDATA[<pre>Image_Barcode Feature/Change Request
Reported by permafour
2007-04-02T15:16:03+00:00
PHP: 5.2.1 OS: SuSE 10.0 Package Version: 1.1.0

Description:
------------
When the $bSendToBrowser option is enabled in Image::Barcode-&gt;draw(), PHP Notice messages are generated at each draw.

A patch to fix this:


--- Barcode.php 2007-04-02 11:25:26.000000000 -0400
+++ Barcode.new.php     2007-04-02 16:00:34.000000000 -0400
@@ -106,9 +106,8 @@
                     imagedestroy($img);
                     break;
             }
-        } else {
-            return $img;
-        }
+       }
+        return $img;
     }
 }
 ?&gt;

Test script:
---------------
&lt;?php
require_once('Image/Barcode.php');

$BarCodeObj = new Image_Barcode();
$BarCodeObj-&gt;draw(1234,'code128','gif');

?&gt;


Expected result:
----------------
Barcode printed to browser without error messages.

Actual result:
--------------
Barcode is printed to browser, but a PHP Notice is printed to the error log:

[Mon Apr 02 16:04:57 2007] [error] [client x.x.x.x] PHP Notice:  Only variable references should be returned by reference in /usr/local/php/lib/php/Image/Barcode.php on line 112</pre>]]></description>
      <dc:date>2008-04-06T03:57:55+00:00</dc:date>
      <dc:creator>vince &amp;#x61;&amp;#116; cuz &amp;#x64;&amp;#111;&amp;#x74; cx</dc:creator>
      <dc:subject>Image_Barcode Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
