php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7207 imap_open bug
Submitted: 2000-10-14 12:35 UTC Modified: 2000-10-30 09:26 UTC
From: brain at brainlapse Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.3 OS: win98se
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brain at brainlapse
New email:
PHP Version: OS:

 

 [2000-10-14 12:35 UTC] brain at brainlapse
when there are no messages in an INBOX, the error "Fatal error: Mailbox is empty in C:\Program Files\Apache Group\Apache\htdocs/mail.php3 on line XX" 

Adding the @ in front of imap_open does nothing. When there are messages this error does not apear.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-15 21:45 UTC] sniper@php.net
I can not reproduce this. Could you please include a shortest possible 
reproducing script into this bug report?

--Jani
 [2000-10-30 09:26 UTC] sniper@php.net
No feedback and I can not reproduce this with
latest working CVS.

--Jani
 [2004-08-04 07:34 UTC] a at a dot com
After almost 4 years, this problem continues to be unaddressed.

The mail-box-empty message is reported as an error, which is wrong.  If the mail box is empty, imap_last_error should not return this as an error.
 [2004-08-18 22:59 UTC] compu_global_hyper_mega_net_2 at yahoo dot com
This bug should be reopened.  The current behaviour is really wrong.

<?
$mbox = @imap_open('{localhost:110/pop3}INBOX', 'user', 'password');
?>

Obviously, in the above example, I have a pop3 server running on localhost, with the user/password credentials.

Result:

PHP Notice:  (null)(): Mailbox is empty (errflg=1) in Unknown on line 0

Notice: (null)(): Mailbox is empty (errflg=1) in Unknown on line 0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC