note 119264 added to function.imap-expunge

From: Date: Fri, 29 Apr 2016 14:44:22 +0000
Subject: note 119264 added to function.imap-expunge
Groups: php.notes 
Request: Send a blank email to php-notes+get-205396@lists.php.net to get a copy of this message
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. ---- Server IP: 72.52.91.14 Probable Submitter: 78.102.91.49 ---- Manual Page -- http://php.net/manual/en/function.imap-expunge.php Edit -- https://master.php.net/note/edit/119264 Del: integrated -- https://master.php.net/note/delete/119264/integrated Del: useless -- https://master.php.net/note/delete/119264/useless Del: bad code -- https://master.php.net/note/delete/119264/bad+code Del: spam -- https://master.php.net/note/delete/119264/spam Del: non-english -- https://master.php.net/note/delete/119264/non-english Del: in docs -- https://master.php.net/note/delete/119264/in+docs Del: other reasons-- https://master.php.net/note/delete/119264 Reject -- https://master.php.net/note/reject/119264 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#205396) next »