note 116898 deleted from function.imap-fetchstructure by cmb
| From: | cmb@php.net | Date: | Thu, 08 Oct 2020 14:43:11 +0000 |
| Subject: | note 116898 deleted from function.imap-fetchstructure by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215549@lists.php.net to get a copy of this message | ||
Note Submitter: m dot staas at goowy dot com
----
Note that imap_fetchstructure does not return the object on failure. It returns false on failure.
e.g.
$structure = imap_fetchstructure($mailbox, $messagenumber);
var_dump($structure);
On success it will return the stdClass object as described in the manual.
On failure it will return:
bool(false)
Hope this will help people, for instance when you use a mailbox which is accessed and updated by
multiple applications at the same time.
(I am using php 5.5.22 with imap client 2007e)