php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51653 setting imap_timeout() too low can lock directories
Submitted: 2010-04-24 14:48 UTC Modified: 2020-10-25 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: travis at shadowglen dot com Assigned: cmb (profile)
Status: No Feedback Package: IMAP related
PHP Version: 5.2.13 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: travis at shadowglen dot com
New email:
PHP Version: OS:

 

 [2010-04-24 14:48 UTC] travis at shadowglen dot com
Description:
------------
The following was placed at the top of a mailing list script, which logs into an account to check for messages, then repackages the message and sends it to the mailing list subscribers using the mail() function.

imap_timeout(IMAP_OPENTIMEOUT, 2);
imap_timeout(IMAP_READTIMEOUT, 2);
imap_timeout(IMAP_WRITETIMEOUT, 2);
imap_timeout(IMAP_CLOSETIMEOUT, 2);

Later in the script, I call imap_open(), specifically using connection to {localhost:993/ssl/no-validate-cert} if this makes a difference, unsure.

Periodically ran into an issue where the mail() call would simply stop returning true -- but for the directory the script is located in only.  I set up a second script, that simply tests the mail() function -- I place it in the directory where the locked-up script is located and mail() returns false.  Any other directory, mail() will return true.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-16 13:54 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-16 13:54 UTC] cmb@php.net
This doesn't look like a bug in PHP (but rather in libc-client),
or do you have evidence otherwise?
 [2020-10-25 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 14:01:26 2020 UTC