|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49901 changing IMAP_CLOSETIMEOUT through imap_timeout() is not implemented
Submitted: 2009-10-16 14:50 UTC Modified: 2009-10-19 12:12 UTC
From: olivier at oxeva dot fr Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.3SVN-2009-10-16 (snap) OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: olivier at oxeva dot fr
New email:
PHP Version: OS:


 [2009-10-16 14:50 UTC] olivier at oxeva dot fr
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:

var_dump(imap_timeout(IMAP_WRITETIMEOUT, 10));

Expected result:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-19 10:41 UTC]
If you don't pass the timeout parameter, imap_timeout() will only return what it is set to currently. No bug here.
 [2009-10-19 12:12 UTC] olivier at oxeva dot fr
My reproduce code was bogus. You should read IMAP_CLOSETIMEOUT everywhere. That's why I think you did not understand what I was saying:

Changing the close timeout seems to have no effect at all :
var_dump(imap_timeout(IMAP_CLOSETIMEOUT , 10)); //returns TRUE, so change has been commited

//Now, the getter should return 10, right ?
var_dump(imap_timeout(IMAP_CLOSETIMEOUT)); //returns previous default value, as if nothing were changed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 15:01:34 2024 UTC