note 116898 added to function.imap-fetchstructure

From: Date: Tue, 17 Mar 2015 08:15:34 +0000
Subject: note 116898 added to function.imap-fetchstructure
Groups: php.notes 
Request: Send a blank email to php-notes+get-201969@lists.php.net to get a copy of this message
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) ---- Server IP: 72.52.91.14 Probable Submitter: 213.124.79.186 ---- Manual Page -- http://php.net/manual/en/function.imap-fetchstructure.php Edit -- https://master.php.net/note/edit/116898 Del: integrated -- https://master.php.net/note/delete/116898/integrated Del: useless -- https://master.php.net/note/delete/116898/useless Del: bad code -- https://master.php.net/note/delete/116898/bad+code Del: spam -- https://master.php.net/note/delete/116898/spam Del: non-english -- https://master.php.net/note/delete/116898/non-english Del: in docs -- https://master.php.net/note/delete/116898/in+docs Del: other reasons-- https://master.php.net/note/delete/116898 Reject -- https://master.php.net/note/reject/116898 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201969) next »