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

Bug #11202 Correct code
Submitted: 2007-06-01 11:10 UTC
From: arka Assigned: chagenbu
Status: Closed Package: Net_Socket (version 1.0.8)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    

 [2007-06-01 11:10 UTC] arka (Alimov Rustem)
Description: ------------ function readIPAddress() { ... return sprintf("%s.%s.%s.%s", ord($buf[0]), ord($buf[1]), ord($buf[2]), ord($buf[3])); } ord return int, and so: return sprintf("%d.%d.%d.%d", ord($buf[0]), ord($buf[1]), ord($buf[2]), ord($buf[3]));


 [2007-06-01 19:03 UTC] chagenbu (Chuck Hagenbuch)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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. Not really a bug, but I agree using %d is more correct. Thanks. I fixed some spelling errors in those docs while I was at it.