From:
Operating system: Linux
PHP version: 5.2.13
Package: IMAP related
Bug Type: Bug
Bug description:setting imap_timeout() too low can lock directories
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.
--
Edit bug report at http://bugs.php.net/bug.php?id=51653&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51653&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51653&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51653&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51653&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51653&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51653&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51653&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51653&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51653&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51653&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51653&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51653&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51653&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51653&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51653&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51653&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51653&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51653&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51653&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51653&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51653&r=mysqlcfg