downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

imap_expunge> <imap_deletemailbox
[edit] Last updated: Fri, 17 May 2013

view this page in

imap_errors

(PHP 4, PHP 5)

imap_errors発生したすべての IMAP エラーを返す

説明

array imap_errors ( void )

ページのリクエストの間かエラースタックがリセットされて以来 生じた全ての IMAP エラー (存在すれば) を返します。

imap_errors() がコールされると、 処理の終了後にエラースタックがクリアされます。

返り値

この関数は、最後に imap_errors() コールを行ってから、またはそのページの処理を開始してから 発生した全ての IMAP エラーメッセージの配列を返します。 エラーメッセージが存在しない場合には FALSE を返します。

参考

  • imap_last_error() - ページリクエスト時に生じた直近の IMAP エラーを返す
  • imap_alerts() - 発生した IMAP 警告メッセージを返す



add a note add a note User Contributed Notes imap_errors - [1 notes]
up
0
Jeremy Glover
6 years ago
When calling imap_close($mbox), notices will be generated for each error that has occurred within the imap functions.  To suppress these error messages (including Mailbox is empty, which is not really an error) simply call imap_errors() and then imap_close($mbox).

 
show source | credits | sitemap | contact | advertising | mirror sites