<?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=HTTP_Download</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/19656" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19458" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19207" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16100" />
      <rdf:li rdf:resource="http://pear.php.net/bug/9670" />

     </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/19656">
      <title>HTTP_Download: Bug 19656 [Open] Assigning the return value of new by reference is deprecated</title>
      <link>http://pear.php.net/bugs/19656</link>
      <content:encoded><![CDATA[<pre>HTTP_Download Bug
Reported by redcore
2012-10-19T06:00:39+00:00
PHP: 5.3.13 OS: Mac/Linux Package Version: 1.1.4

Description:
------------
Getting this error in my logs on line 252 and 766.

Test script:
---------------
require_once('HTTP/Download.php');

Expected result:
----------------
Not get an error.

Actual result:
--------------
Assigning the return value of new by reference is deprecated on 
line 252 in /usr/share/pear/HTTP/Download.php</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTTP_Download Bug
Reported by redcore
2012-10-19T06:00:39+00:00
PHP: 5.3.13 OS: Mac/Linux Package Version: 1.1.4

Description:
------------
Getting this error in my logs on line 252 and 766.

Test script:
---------------
require_once('HTTP/Download.php');

Expected result:
----------------
Not get an error.

Actual result:
--------------
Assigning the return value of new by reference is deprecated on 
line 252 in /usr/share/pear/HTTP/Download.php</pre>]]></description>
      <dc:date>2012-10-19T06:00:39+00:00</dc:date>
      <dc:creator>redcore &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTTP_Download Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19458">
      <title>HTTP_Download: Bug 19458 [Open] sendChunk not sending last payload when size equals multiple of bufferSize</title>
      <link>http://pear.php.net/bugs/19458</link>
      <content:encoded><![CDATA[<pre>HTTP_Download Bug
Reported by julien_etter
2012-06-06T19:50:32+00:00
PHP: 5.2.11 OS: any Package Version: 1.1.4

Description:
------------
In sendChunk method:

917	                while (($length -= $this-&gt;bufferSize) &gt; 0) {
918	                    $this-&gt;flush(fread($this-&gt;handle, $this-
&gt;bufferSize));
919	                    $this-&gt;throttleDelay and $this-&gt;sleep();
920	                }
921	                if ($length) {
922	                    $this-&gt;flush(fread($this-&gt;handle, $this-
&gt;bufferSize + $length));
923	                }

will not take care of the last payload if it is exactly equals to 
the bufferSize as test line 917 will return false as well as test 
line 921.

Should line 921 be changed to:
921	                if ($length &lt;= 0) {



Test script:
---------------
Using the default bufferSize of 2M (2097152 bytes), download any file with a size of n*2097152, where n is an integer.


Expected result:
----------------
The whole file to be downloaded.

Actual result:
--------------
The whole file minus bufferSize is downloaded, as the size 
transferred doesn't match the content-Length header, browsers 
will &quot;hang&quot;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTTP_Download Bug
Reported by julien_etter
2012-06-06T19:50:32+00:00
PHP: 5.2.11 OS: any Package Version: 1.1.4

Description:
------------
In sendChunk method:

917	                while (($length -= $this-&gt;bufferSize) &gt; 0) {
918	                    $this-&gt;flush(fread($this-&gt;handle, $this-
&gt;bufferSize));
919	                    $this-&gt;throttleDelay and $this-&gt;sleep();
920	                }
921	                if ($length) {
922	                    $this-&gt;flush(fread($this-&gt;handle, $this-
&gt;bufferSize + $length));
923	                }

will not take care of the last payload if it is exactly equals to 
the bufferSize as test line 917 will return false as well as test 
line 921.

Should line 921 be changed to:
921	                if ($length &lt;= 0) {



Test script:
---------------
Using the default bufferSize of 2M (2097152 bytes), download any file with a size of n*2097152, where n is an integer.


Expected result:
----------------
The whole file to be downloaded.

Actual result:
--------------
The whole file minus bufferSize is downloaded, as the size 
transferred doesn't match the content-Length header, browsers 
will &quot;hang&quot;</pre>]]></description>
      <dc:date>2012-06-06T19:50:32+00:00</dc:date>
      <dc:creator>julien &amp;#x64;&amp;#111;&amp;#x74; etter &amp;#x61;&amp;#116; juno &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; uk</dc:creator>
      <dc:subject>HTTP_Download Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19207">
      <title>HTTP_Download: Feature/Change Request 19207 [Open] Content-length isnt sent if a non obtrusive ob_handler is also loaded</title>
      <link>http://pear.php.net/bugs/19207</link>
      <content:encoded><![CDATA[<pre>HTTP_Download Feature/Change Request
Reported by kingsquare
2012-01-09T14:30:39+00:00
PHP: 5.3.2 OS: linux Package Version: 1.1.4

Description:
------------
The code which adds the content-length header to the 
response only does so when there is no Gzip, the variable 
$end is not '*' and there is only one ob_handler loaded.

That last condition is what bothers me: isn't there anyway to 
be more specific than that? Just by loading an extension which 
(i.e.) automatically fixes the html output (ob_tidyhandler), 
adds javascript headers (newrelic) etc etc

Thus combining any form of ob_handling and Http_download 
currently disables the content_length header even though all 
the other conditions are met... Is there anyway to bypass this 
and skip the ob_list_handlers()-call ?</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTTP_Download Feature/Change Request
Reported by kingsquare
2012-01-09T14:30:39+00:00
PHP: 5.3.2 OS: linux Package Version: 1.1.4

Description:
------------
The code which adds the content-length header to the 
response only does so when there is no Gzip, the variable 
$end is not '*' and there is only one ob_handler loaded.

That last condition is what bothers me: isn't there anyway to 
be more specific than that? Just by loading an extension which 
(i.e.) automatically fixes the html output (ob_tidyhandler), 
adds javascript headers (newrelic) etc etc

Thus combining any form of ob_handling and Http_download 
currently disables the content_length header even though all 
the other conditions are met... Is there anyway to bypass this 
and skip the ob_list_handlers()-call ?</pre>]]></description>
      <dc:date>2012-01-09T14:30:39+00:00</dc:date>
      <dc:creator>pear &amp;#x61;&amp;#116; kingsquare &amp;#x64;&amp;#111;&amp;#x74; nl</dc:creator>
      <dc:subject>HTTP_Download Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16100">
      <title>HTTP_Download: Bug 16100 [Open] Dowload of aribitrary zip-files not work with IE 7.0</title>
      <link>http://pear.php.net/bugs/16100</link>
      <content:encoded><![CDATA[<pre>HTTP_Download Bug
Reported by stuff_de
2009-04-15T13:22:06+00:00
PHP: 5.2.5 OS: Linux 2.6.5 Package Version: 1.1.3

Description:
------------
Dowload of aribitrary zip-files not work with IE 7.0.
After request the script, a &quot;never ending&quot; download status window occures, containing only a &quot;cancel-button&quot;. On retry, sometimes nothing occures (no browser status window)
 and nothing happens. 

Note: The download works fine with firefox or opera.

Test script:
---------------
&lt;?php
$params = array(
   'file'                =&gt; '/tmp/download.tgz',
   'contenttype'         =&gt; 'application/x-gzip',
   'contentdisposition'  =&gt; array(HTTP_DOWNLOAD_ATTACHMENT, 'latest.tgz'),
  );
  
  $error = HTTP_Download::staticSend($params, false);
?&gt;

Expected result:
----------------
a &quot;normal&quot; download window opened by browser having &quot;start download&quot; and &quot;select target folder&quot; buttons (or something like that)

Actual result:
--------------
After request the script, a &quot;never ending&quot; download status window occures containing only a &quot;cancel-button&quot;. On retry, sometimes nothing occures (no browser status window)
 and nothing happens.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTTP_Download Bug
Reported by stuff_de
2009-04-15T13:22:06+00:00
PHP: 5.2.5 OS: Linux 2.6.5 Package Version: 1.1.3

Description:
------------
Dowload of aribitrary zip-files not work with IE 7.0.
After request the script, a &quot;never ending&quot; download status window occures, containing only a &quot;cancel-button&quot;. On retry, sometimes nothing occures (no browser status window)
 and nothing happens. 

Note: The download works fine with firefox or opera.

Test script:
---------------
&lt;?php
$params = array(
   'file'                =&gt; '/tmp/download.tgz',
   'contenttype'         =&gt; 'application/x-gzip',
   'contentdisposition'  =&gt; array(HTTP_DOWNLOAD_ATTACHMENT, 'latest.tgz'),
  );
  
  $error = HTTP_Download::staticSend($params, false);
?&gt;

Expected result:
----------------
a &quot;normal&quot; download window opened by browser having &quot;start download&quot; and &quot;select target folder&quot; buttons (or something like that)

Actual result:
--------------
After request the script, a &quot;never ending&quot; download status window occures containing only a &quot;cancel-button&quot;. On retry, sometimes nothing occures (no browser status window)
 and nothing happens.</pre>]]></description>
      <dc:date>2009-04-15T13:22:06+00:00</dc:date>
      <dc:creator>stuff &amp;#x61;&amp;#116; rushsoft &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>HTTP_Download Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/9670">
      <title>HTTP_Download: Bug 9670 [Assigned] Notice: ob_end_clean(): failed to delete buffer</title>
      <link>http://pear.php.net/bugs/9670</link>
      <content:encoded><![CDATA[<pre>HTTP_Download Bug
Reported by troehr
2006-12-21T11:59:31+00:00
PHP: 5.2.0 OS: Any Package Version: CVS

Description:
------------
Calling ob_end_clean() without a buffer causes an E_NOTICE as described on http://php.net/ob_end_clean

Test script:
---------------
Line 656 in Download.php:

Replace: while (@ob_end_clean());
With:    while (ob_get_clean());

Expected result:
----------------
No error.

Actual result:
--------------
Notice: ob_end_clean(): failed to delete buffer. No buffer to delete</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTTP_Download Bug
Reported by troehr
2006-12-21T11:59:31+00:00
PHP: 5.2.0 OS: Any Package Version: CVS

Description:
------------
Calling ob_end_clean() without a buffer causes an E_NOTICE as described on http://php.net/ob_end_clean

Test script:
---------------
Line 656 in Download.php:

Replace: while (@ob_end_clean());
With:    while (ob_get_clean());

Expected result:
----------------
No error.

Actual result:
--------------
Notice: ob_end_clean(): failed to delete buffer. No buffer to delete</pre>]]></description>
      <dc:date>2011-03-24T18:35:01+00:00</dc:date>
      <dc:creator>troehr &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>HTTP_Download Bug</dc:subject>
    </item>
</rdf:RDF>
