php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23487 imap_open runs too slow
Submitted: 2003-05-05 04:10 UTC Modified: 2003-05-10 20:34 UTC
From: huangng at yahoo dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.3.1 OS: FreeBSD 4.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: huangng at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-05-05 04:10 UTC] huangng at yahoo dot com
Hi, Dear Friend:

I installed PHP 3.1 on FreeBSD 4.8.

The config of PHP is:
./configure --with-mysql --with-curl \
  --with-apxs=/usr/local/apache/bin/apxs \
  --with-mcrypt=/usr/local/include \
  --with-imap \
  --enable-mbstring

The imap is imap-2002b.

The mail is qmail + vpopmail + qmailadmin

The problem is that it was runing too slow (20 seconds or more) when I run the following code:

<?
$mbox = imap_open ("{localhost:110/pop3}INBOX", "huangng@tlpsr.com", "huangng"); 
echo "you have ". imap_num_msg ($mbox);
imap_close($mbox);
?>

Other codes are not affected.

Best regards

Huang

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-05 16:27 UTC] sniper@php.net
There is absolutely nothing in PHP side that could cause this. (I can _not_ reproduce this locally)


 [2003-05-05 20:13 UTC] huangng at yahoo dot com
qmail runs well because I sent and received mails in less than one second using Outlook express.

Bill McCoy also reported performance of imap_open was low.
Pls see: http://www.mail-archive.com/info-cyrus@lists.andrew.cmu.edu/msg12295.html

Many thanks.
 [2003-05-05 20:16 UTC] huangng at yahoo dot com
Sorry. the URL is:

http://www.mail-archive.com/info-cyrus@lists.andrew.cmu.edu/msg12295.html

(the file is msg12295.html not msg12295.htm)
 [2003-05-10 20:34 UTC] huangng at yahoo dot com
It's OK if I use IP address instead of localhost.

$mbox = imap_open ("{61.17.147.25:110/pop3}INBOX", "huangng@tlpsr.com","huangng"); 

Many thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 20:01:29 2024 UTC