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

Bug #3532 Bencode - encode and decode - wrong file size (length over 2GiB)
Submitted: 2005-02-20 14:56 UTC
From: pepsiblue555 at hotmail dot com Assigned: tacker
Status: Closed Package: File_Bittorrent
PHP Version: 4.3.10 OS: Windows XP
Roadmaps: (Not assigned)    

 [2005-02-20 14:56 UTC] pepsiblue555 at hotmail dot com
Description: ------------ Since the package Bencode use intval and %d sprintf, this will generate a wrong data for length info. of a file that has size larger than 2GB. (Integer limitation platform dependence) So, using doubleval and %.0f sprintf might work,but may be you have a better idea.


 [2005-02-21 18:35 UTC] tacker
I will fix this and skip integer parsing the value. Will be in SVN tomorrow and subsequently released.
 [2005-02-22 15:03 UTC] tacker
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at