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

Bug #2751 _timeout incorrectly documented & _timeout and _readTimeout not consistent
Submitted: 2004-11-13 23:25 UTC
From: neufeind Assigned: avb
Status: Closed Package: HTTP_Request
PHP Version: Irrelevant OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 15 - 2 = ?

 
 [2004-11-13 23:25 UTC] neufeind
Description: ------------ The class uses _timeout internally, which you can set using the param "timeout" calling the constructor. There is also _readTimeout (though not yet publically available). But that value is stored in seconds and milliseconds: array(seconds, microseconds). I see that this is a "feature" - but it's not consistent (timeout/readTimeout).

Comments

 [2004-12-10 14:53 UTC] avb
Fixed in CVS: both parameters are now documented. As for incostistency, that's the problem of PHP itself: fsockopen() accepts one float value for a timeout, while socket_set_timeout() accepts two integer values for a timeout. Net_Socket follows that behaviour and so does HTTP_Request.