cvs: pear /HTTP_Download Download.php
| From: | Michael Wallner | Date: | Tue, 17 May 2005 10:35:30 +0000 |
| Subject: | cvs: pear /HTTP_Download Download.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31890@lists.php.net to get a copy of this message | ||
mike Tue May 17 06:35:30 2005 EDT
Modified files:
/pear/HTTP_Download Download.php
Log:
* fix bug #4049: if a non-existant file was specified in the constructor parameters,
a call to a member function on a non-object was issued because
HTTP_Header was not already initialized
http://cvs.php.net/diff.php/pear/HTTP_Download/Download.php?r1=1.65&r2=1.66&ty=u
Index: pear/HTTP_Download/Download.php
diff -u pear/HTTP_Download/Download.php:1.65 pear/HTTP_Download/Download.php:1.66
--- pear/HTTP_Download/Download.php:1.65 Tue May 17 06:33:48 2005
+++ pear/HTTP_Download/Download.php Tue May 17 06:35:29 2005
@@ -17,7 +17,7 @@
* @author Michael Wallner <mike@php.net>
* @copyright 2003-2005 Michael Wallner
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Download.php,v 1.65 2005/05/17 10:33:48 mike Exp $
+ * @version CVS: $Id: Download.php,v 1.66 2005/05/17 10:35:29 mike Exp $
* @link http://pear.php.net/package/HTTP_Download
*/
@@ -92,7 +92,7 @@
* if you want to send already gzipped data!
*
* @access public
- * @version $Revision: 1.65 $
+ * @version $Revision: 1.66 $
*/
class HTTP_Download
{
@@ -238,8 +238,8 @@
*/
function HTTP_Download($params = array())
{
- $this->setParams($params);
$this->HTTP = &new HTTP_Header;
+ $this->setParams($params);
}
// }}}