ID:               49901
 Updated by:       [email protected]
 Reported By:      olivier at oxeva dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         IMAP related
 Operating System: linux
 PHP Version:      5.3SVN-2009-10-16 (snap)
 New Comment:

If you don't pass the timeout parameter, imap_timeout() will only
return what it is set to currently. No bug here.


Previous Comments:
------------------------------------------------------------------------

[2009-10-16 14:50:18] olivier at oxeva dot fr

Description:
------------
It seems changing IMAP_CLOSETIMEOUT through imap_timeout() function is
not implemented. Also, the returned value seems arbitrary (when using
imap_timeout with one argument).

If this usage is not implemented, documentation should be updated.


Reproduce code:
---------------
<?php

var_dump(imap_timeout(IMAP_CLOSETIMEOUT));
var_dump(imap_timeout(IMAP_WRITETIMEOUT, 10));
var_dump(imap_timeout(IMAP_CLOSETIMEOUT));

Expected result:
----------------
int(%d)
bool(true)
int(10)


Actual result:
--------------
int(%d)
bool(true) //as you can see, function tells that update was
successfull
int(0)  // ... but value has not been updated


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49901&edit=1

Reply via email to