#49901 [Opn->Bgs]: changing IMAP_CLOSETIMEOUT through imap_timeout() is not implemented

From: Date: Mon, 19 Oct 2009 10:41:00 +0000
Subject: #49901 [Opn->Bgs]: changing IMAP_CLOSETIMEOUT through imap_timeout() is not implemented
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143667@lists.php.net to get a copy of this message
ID: 49901 Updated by: jani@php.net 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

« previous php.bugs (#143667) next »