PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Queue » Bug #7886

sendMailsInQueue: problem sending in same second as put

Details

Request #7886sendMailsInQueue: problem sending in same second as put
Submitted2006-06-13 14:46 UTC
Fromhkrems at yahoo dot de
Assignedquipo
StatusClosed
PackageMail_Queue
PHP Version5.1.2
OSMax OS X
Roadmaps(Not assigned)

Comments

[2006-06-13 14:46 UTC] hkrems at yahoo dot de

Description:
------------
put mail(s) in an empty queue with $seconds_to_send = 0.
a few lines later do sendMailsInQueue().
the mails created above stay in the queue (none is sent) when
sendMailsInQueue is called in the same second of putting.

maybe this is because Mail_Queue_Container_db::_preload()
searches
... AND date("Y-m-d H:i:s") > time_to_send ...

does it make sense to change the comparison operator to >= ?

a workaround is to put mail(s) in the queue with
$seconds_to_send set to -1: the mails are processed.