PHP 8.5.0 Alpha 2 available for testing

Voting

: seven plus two?
(Example: nine)

The Note You're Voting On

Pavel Cernik
9 years ago
imap_expunge() may change order of messages which were loaded using imap_sort().
That means, if you use foreach() on result of imap_sort() function and each pass you move/delete a message and instantly expunge them, next cycle, messages will have different numbers than imap_sort() returned and the script will fail.

<< Back to user notes page

To Top