Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.4

Bug #2998 Typo
Submitted: 2004-12-20 19:43 UTC Modified: 2004-12-21 07:48 UTC
From: jparsons at goforthnet dot com Assigned: mike
Status: Closed Package: HTTP_Download
PHP Version: 4.3.9 OS: any
Roadmaps: (Not assigned)    
Subscription  


 [2004-12-20 19:43 UTC] jparsons at goforthnet dot com
Description: ------------ Line 577 of Download.php has HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE typed as HTTP_DONWLOAD_E_INVALID_CONTENT_TYPE Reproduce code: --------------- --- Download.php (revision 28) +++ Download.php (working copy) @@ -552,7 +552,7 @@ * (HTTP_DOWNLOAD_E_NO_EXT_MMAGIC) * o mime_content_type() couldn't guess content type or returned * a content type considered to be bogus by setContentType() - * (HTTP_DONWLOAD_E_INVALID_CONTENT_TYPE) + * (HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE) * * @access public * @return mixed Returns true on success or PEAR_Error on failure. @@ -574,7 +574,7 @@ if (!$content_type = @mime_content_type($this->file)) { return PEAR::raiseError( 'Couldn\'t guess content type with mime_content_type().', - HTTP_DONWLOAD_E_INVALID_CONTENT_TYPE + HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE ); } return $this->setContentType($content_type);

Comments

 [2004-12-21 07:48 UTC] mike
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.