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

Bug #4570 Encoding an array with empty or null value is broken
Submitted: 2005-06-10 19:28 UTC Modified: 2005-06-21 02:39 UTC
From: nagash Assigned: tacker
Status: Closed Package: File_Bittorrent
PHP Version: Irrelevant OS: Gentoo Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-10 19:28 UTC] nagash
Description: ------------ Basically, it encodes 'empty' things like '', null, array() wrongly, and hence, they usually screw up the decoding. See http://members.westnet.com.au/jerrylee/bencode_broke.txt Expected result: ---------------- Return the decoded array properly, and with empty values being empty. Actual result: -------------- In the worst cases I've had, it just hung. Other times decoding will display an empty Array(). And sometimes it will even mess up the order. Like move values from one key to another heh. It's kinda whack.

Comments

 [2005-06-11 02:54 UTC] tacker
Thanks for reporting. It will be fixed in a couple of days.
 [2005-06-16 01:01 UTC] nagash
Any progress?
 [2005-06-20 06:17 UTC] tacker
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.
 [2005-06-21 02:39 UTC] tacker
I fixed also the second part of your bug report (Array with empty array value). It's in 0.1.8.