<?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_Canvas</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/16833" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16808" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12961" />

     </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/16833">
      <title>Image_Canvas: Bug 16833 [Open] patch for newlines in SVG addText()</title>
      <link>http://pear.php.net/bugs/16833</link>
      <content:encoded><![CDATA[<pre>Image_Canvas Bug
Reported by vadik56
2009-11-24T16:41:46+00:00
PHP: 5.2.5 OS: Redhat Package Version: 0.3.2

Description:
------------
when addText($text) is used on $text with newlines then newlines are lost due to SVG specification.
line 769 in Image/Canvas/SVG.php
htmlspecialchars($text) .
should be changed to
('&lt;tspan x=&quot;0&quot; dy=&quot;1em&quot;&gt;'. implode('&lt;/tspan&gt;&lt;tspan x=&quot;0&quot; dy=&quot;1em&quot;&gt;', explode(&quot;\n&quot;,htmlspecialchars($text))).'&lt;/tspan&gt;') .

Expected result:
----------------
Newlines should be preserved as in other Canvas drivers.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Image_Canvas Bug
Reported by vadik56
2009-11-24T16:41:46+00:00
PHP: 5.2.5 OS: Redhat Package Version: 0.3.2

Description:
------------
when addText($text) is used on $text with newlines then newlines are lost due to SVG specification.
line 769 in Image/Canvas/SVG.php
htmlspecialchars($text) .
should be changed to
('&lt;tspan x=&quot;0&quot; dy=&quot;1em&quot;&gt;'. implode('&lt;/tspan&gt;&lt;tspan x=&quot;0&quot; dy=&quot;1em&quot;&gt;', explode(&quot;\n&quot;,htmlspecialchars($text))).'&lt;/tspan&gt;') .

Expected result:
----------------
Newlines should be preserved as in other Canvas drivers.</pre>]]></description>
      <dc:date>2009-11-26T22:49:31+00:00</dc:date>
      <dc:creator>vadik56 &amp;#x61;&amp;#116; hotmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Image_Canvas Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16808">
      <title>Image_Canvas: Bug 16808 [Open] imagefilledpolygon(): You must have at least 3 points in your array</title>
      <link>http://pear.php.net/bugs/16808</link>
      <content:encoded><![CDATA[<pre>Image_Canvas Bug
Reported by ghhoriuchi
2009-11-20T06:28:14+00:00
PHP: Irrelevant OS: Linux Package Version: 0.3.2

Description:
------------
I got &quot;imagefilledpolygon(): You must have at least 3 points in 
your array&quot; in Image/Canvas/GD.php.

This problem is related to closed and fixed bug #10236. But I 
still encountered the same problem. So I took the same way, 
but I changed the code a little bit.

The error message said &quot;at least 3 points in your array.&quot; I 
interpreted this as &quot;at least 6 elements in your array.&quot;

*** /home/sysadmin/GD.php       2009-11-20 
11:36:56.123220409 +0900
--- /usr/share/php/Image/Canvas/GD.php  2009-11-20 
11:37:25.908995197 +0900
***************
*** 1209,1219 ****
              $polygon[] = ($y + $ry * sin(deg2rad(max($v1, 
$v2) % 360)));
          }
  
!         if ((($fill = $this-&gt;_getFillStyle($fillColor, $x - $rx - 1, 
$y - $ry - 1, $x + $rx + 1, $y + $ry + 1)) !== false) &amp;&amp; 
(count($polygon) &gt; 5)) {
              ImageFilledPolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $fill);
          }
  
!         if (($line = $this-&gt;_getLineStyle($lineColor)) !== false) 
{
              ImagePolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $line);
          }
  
--- 1209,1219 ----
              $polygon[] = ($y + $ry * sin(deg2rad(max($v1, 
$v2) % 360)));
          }
  
!         if ((($fill = $this-&gt;_getFillStyle($fillColor, $x - $rx - 1, 
$y - $ry - 1, $x + $rx + 1, $y + $ry + 1)) !== false) &amp;&amp; 
(count($polygon) &gt; 5)) {
              ImageFilledPolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $fill);
          }
  
!         if (($line = $this-&gt;_getLineStyle($lineColor)) !== false 
&amp;&amp; (count($polygon) &gt; 4)) {
              ImagePolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $line);
          }</pre>]]></content:encoded>
      <description><![CDATA[<pre>Image_Canvas Bug
Reported by ghhoriuchi
2009-11-20T06:28:14+00:00
PHP: Irrelevant OS: Linux Package Version: 0.3.2

Description:
------------
I got &quot;imagefilledpolygon(): You must have at least 3 points in 
your array&quot; in Image/Canvas/GD.php.

This problem is related to closed and fixed bug #10236. But I 
still encountered the same problem. So I took the same way, 
but I changed the code a little bit.

The error message said &quot;at least 3 points in your array.&quot; I 
interpreted this as &quot;at least 6 elements in your array.&quot;

*** /home/sysadmin/GD.php       2009-11-20 
11:36:56.123220409 +0900
--- /usr/share/php/Image/Canvas/GD.php  2009-11-20 
11:37:25.908995197 +0900
***************
*** 1209,1219 ****
              $polygon[] = ($y + $ry * sin(deg2rad(max($v1, 
$v2) % 360)));
          }
  
!         if ((($fill = $this-&gt;_getFillStyle($fillColor, $x - $rx - 1, 
$y - $ry - 1, $x + $rx + 1, $y + $ry + 1)) !== false) &amp;&amp; 
(count($polygon) &gt; 5)) {
              ImageFilledPolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $fill);
          }
  
!         if (($line = $this-&gt;_getLineStyle($lineColor)) !== false) 
{
              ImagePolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $line);
          }
  
--- 1209,1219 ----
              $polygon[] = ($y + $ry * sin(deg2rad(max($v1, 
$v2) % 360)));
          }
  
!         if ((($fill = $this-&gt;_getFillStyle($fillColor, $x - $rx - 1, 
$y - $ry - 1, $x + $rx + 1, $y + $ry + 1)) !== false) &amp;&amp; 
(count($polygon) &gt; 5)) {
              ImageFilledPolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $fill);
          }
  
!         if (($line = $this-&gt;_getLineStyle($lineColor)) !== false 
&amp;&amp; (count($polygon) &gt; 4)) {
              ImagePolygon($this-&gt;_canvas, $polygon, 
count($polygon) / 2, $line);
          }</pre>]]></description>
      <dc:date>2009-11-20T06:28:14+00:00</dc:date>
      <dc:creator>takahiko-horiuchi &amp;#x61;&amp;#116; greenhouse &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; jp</dc:creator>
      <dc:subject>Image_Canvas Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12961">
      <title>Image_Canvas: Bug 12961 [Open] can't insert svg elements with addText</title>
      <link>http://pear.php.net/bugs/12961</link>
      <content:encoded><![CDATA[<pre>Image_Canvas Bug
Reported by adrianbj
2008-01-22T22:15:55+00:00
PHP: 5.2.5 OS: Debian Package Version: 0.3.1

Description:
------------
In SVG.php, there is a line in the addText function:

htmlspecialchars($text) .

Unfortunately, this prevents the use of svg elements such as &lt;tspan&gt;. Removing the htmlspecialchars fixes the problem, but I do see why you added it, so there might be a better way to fix the problem.

Expected result:
----------------
SVG elements such as &lt;tspan&gt; should be applied to the text

Actual result:
--------------
the elements themselves are actually printed along with the text</pre>]]></content:encoded>
      <description><![CDATA[<pre>Image_Canvas Bug
Reported by adrianbj
2008-01-22T22:15:55+00:00
PHP: 5.2.5 OS: Debian Package Version: 0.3.1

Description:
------------
In SVG.php, there is a line in the addText function:

htmlspecialchars($text) .

Unfortunately, this prevents the use of svg elements such as &lt;tspan&gt;. Removing the htmlspecialchars fixes the problem, but I do see why you added it, so there might be a better way to fix the problem.

Expected result:
----------------
SVG elements such as &lt;tspan&gt; should be applied to the text

Actual result:
--------------
the elements themselves are actually printed along with the text</pre>]]></description>
      <dc:date>2009-08-18T23:58:40+00:00</dc:date>
      <dc:creator>adrianbjones &amp;#x61;&amp;#116; yahoo &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Image_Canvas Bug</dc:subject>
    </item>
</rdf:RDF>
