PEAR Bug Search Results
http://pear.php.net/bugs/search.php?cmd=display&package_name%5B0%5D=HTTP_Download
Search Resultsen-uspear-webmaster@lists.php.netpear-webmaster@lists.php.nethourly12000年01月01日T12:00+00:00PEAR Bugshttp://pear.php.net/gifs/pearsmall.gif
http://pear.php.net/bugs
HTTP_Download: Bug 19656 [Open] Assigning the return value of new by reference is deprecated
http://pear.php.net/bugs/19656
HTTP_Download Bug
Reported by redcore
2012年10月19日T06: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]]>HTTP_Download Bug
Reported by redcore
2012年10月19日T06: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]]>2012年10月19日T06:00:39+00:00redcore at gmail dot comHTTP_Download BugHTTP_Download: Bug 19458 [Open] sendChunk not sending last payload when size equals multiple of bufferSize
http://pear.php.net/bugs/19458
HTTP_Download Bug
Reported by julien_etter
2012年06月06日T19:50:32+00:00
PHP: 5.2.11 OS: any Package Version: 1.1.4
Description:
------------
In sendChunk method:
917 while (($length -= $this->bufferSize) > 0) {
918 $this->flush(fread($this->handle, $this-
>bufferSize));
919 $this->throttleDelay and $this->sleep();
920 }
921 if ($length) {
922 $this->flush(fread($this->handle, $this-
>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 <= 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 "hang"]]>HTTP_Download Bug
Reported by julien_etter
2012年06月06日T19:50:32+00:00
PHP: 5.2.11 OS: any Package Version: 1.1.4
Description:
------------
In sendChunk method:
917 while (($length -= $this->bufferSize) > 0) {
918 $this->flush(fread($this->handle, $this-
>bufferSize));
919 $this->throttleDelay and $this->sleep();
920 }
921 if ($length) {
922 $this->flush(fread($this->handle, $this-
>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 <= 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 "hang"]]>2012年06月06日T19:50:32+00:00julien dot etter at juno dot co dot ukHTTP_Download BugHTTP_Download: Feature/Change Request 19207 [Open] Content-length isnt sent if a non obtrusive ob_handler is also loaded
http://pear.php.net/bugs/19207
HTTP_Download Feature/Change Request
Reported by kingsquare
2012年01月09日T14: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 ?]]>HTTP_Download Feature/Change Request
Reported by kingsquare
2012年01月09日T14: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 ?]]>2012年01月09日T14:30:39+00:00pear at kingsquare dot nlHTTP_Download Feature/Change RequestHTTP_Download: Bug 16100 [Open] Dowload of aribitrary zip-files not work with IE 7.0
http://pear.php.net/bugs/16100
HTTP_Download Bug
Reported by stuff_de
2009年04月15日T13: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 "never ending" download status window occures, containing only a "cancel-button". On retry, sometimes nothing occures (no browser status window)
and nothing happens.
Note: The download works fine with firefox or opera.
Test script:
---------------
<?php
$params = array(
'file' => '/tmp/download.tgz',
'contenttype' => 'application/x-gzip',
'contentdisposition' => array(HTTP_DOWNLOAD_ATTACHMENT, 'latest.tgz'),
);
$error = HTTP_Download::staticSend($params, false);
?>
Expected result:
----------------
a "normal" download window opened by browser having "start download" and "select target folder" buttons (or something like that)
Actual result:
--------------
After request the script, a "never ending" download status window occures containing only a "cancel-button". On retry, sometimes nothing occures (no browser status window)
and nothing happens.]]>HTTP_Download Bug
Reported by stuff_de
2009年04月15日T13: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 "never ending" download status window occures, containing only a "cancel-button". On retry, sometimes nothing occures (no browser status window)
and nothing happens.
Note: The download works fine with firefox or opera.
Test script:
---------------
<?php
$params = array(
'file' => '/tmp/download.tgz',
'contenttype' => 'application/x-gzip',
'contentdisposition' => array(HTTP_DOWNLOAD_ATTACHMENT, 'latest.tgz'),
);
$error = HTTP_Download::staticSend($params, false);
?>
Expected result:
----------------
a "normal" download window opened by browser having "start download" and "select target folder" buttons (or something like that)
Actual result:
--------------
After request the script, a "never ending" download status window occures containing only a "cancel-button". On retry, sometimes nothing occures (no browser status window)
and nothing happens.]]>2009年04月15日T13:22:06+00:00stuff at rushsoft dot deHTTP_Download BugHTTP_Download: Bug 9670 [Assigned] Notice: ob_end_clean(): failed to delete buffer
http://pear.php.net/bugs/9670
HTTP_Download Bug
Reported by troehr
2006年12月21日T11: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]]>HTTP_Download Bug
Reported by troehr
2006年12月21日T11: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]]>2011年03月24日T18:35:01+00:00troehr at php dot netHTTP_Download Bug