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

Bug #18399 Error in example scripts
Submitted: 2011-03-26 22:43 UTC
From: mariushm Assigned: till
Status: Closed Package: File_Bittorrent (version 1.1.0)
PHP Version: Irrelevant OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2011-03-26 22:43 UTC] mariushm (marius marius)
Description: ------------ In torrentinfo.php: (copy and pasted the code from torrentinfo.php to torrent.php) Warning: str_pad() expects parameter 4 to be long, string given in C:\Projects\xxxx\torrent.php on line 53 Basically replacing PAD_LEFT with STR_PAD_LEFT fixed the issue, no more warning. Also but i guess unrelated: Deprecated: Assigning the return value of new by reference is deprecated in C:\php\PEAR\Console\Getargs.php on line 227 Test script: --------------- No need, just a wrong constant used in the example code. Expected result: ---------------- No warnings. Fixing the constant makes it so. Actual result: -------------- An ugly warning.

Comments

 [2011-03-26 23:59 UTC] till (Till Klampaeckel)
-Status: Open +Status: Closed -Assigned To: +Assigned To: till
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. You might wanna check out File_Bittorrent2.