php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9167 imap_status()
Submitted: 2001-02-07 17:18 UTC Modified: 2001-02-11 18:28 UTC
From: tlb at rapanden dot dk Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.4pl1 OS: Linux 2.2.17
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: tlb at rapanden dot dk
New email:
PHP Version: OS:

 

 [2001-02-07 17:18 UTC] tlb at rapanden dot dk
This works:
$mbox = imap_open ("{rapanden.dk:143}", "$login", "$passwd",
OP_HALFOPEN);
$status =
imap_status($mbox,"{rapanden.dk:143}INBOX",SA_MESSAGES);

and this dos'nt:
$mbox = imap_open ("{localhost:143}", "$login", "$passwd",
OP_HALFOPEN); $status =
imap_status($mbox,"{localhost:143}INBOX",SA_MESSAGES);

The problem is that imap_status will only accept the machine
name, even if I use mail.rapanden.dk that points to the same
ip as rapanden.dk it won't work.

I found another description of the problem here:
http://faqchest.dynhost.com/prgm/imp-l/imp-00/imp-0012/imp-001206/imp00121423_34248.html

Troels Liebe Bentsen

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-07 17:29 UTC] chagenbu@php.net
I remember this problem being solved by putting a valid entry for localhost into /etc/hosts on the machine in question. Do you have an entry, and if not, does adding one fix the problem?
 [2001-02-07 17:40 UTC] tlb at rapanden dot dk
Here is my current:
127.0.0.1 localhost.rapanden.dk localhost

And no it does not fix the problem.
 [2001-02-07 17:47 UTC] avsm@php.net
This bug should be fixed in php-4.0.5-dev.  Try getting a snapshot from http://snaps.php.net and upgrading your copy of PHP, and try again.

The relevant commit was: http://cvs.php.net/viewcvs.cgi/php4/ext/imap/php_imap.c.diff?r1=1.52&r2=1.53
 [2001-02-11 18:28 UTC] avsm@php.net
No feedback, but similar reports indicate that this bug is gone in php-4.0.5-dev
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 11:01:30 2025 UTC