php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #898 Couldn't open imap stream with imap_open()
Submitted: 1998-11-05 07:05 UTC Modified: 1998-11-23 00:52 UTC
From: hjy at wins21 dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.5 OS: windows NT
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: hjy at wins21 dot com
New email:
PHP Version: OS:

 

 [1998-11-05 07:05 UTC] hjy at wins21 dot com
 dl("imap4r2.dll");
 #mbox = imap_open("{wins21.com}INBOX", $login, $pass);

  is not work correctly.

  > Couldn't open stream....  

  other dll library required ?

 ==========================================
  In WindowsNT (define WIN32)

  mail_link($mbxdriver) is twice defined.
 ==========================================

 I was found that ...

 ================== function/imap.c ===============
222 int imap_init(INIT_FUNC_ARGS)
223 {
224 #if WIN32|WINNT
225	mail_link (&mbxdriver);      /* link in the mbox driver */  <----------- defined
226 #else
227	mail_link(&unixdriver);   /* link in the unix driver */
228 #endif
229	mail_link (&imapdriver);      /* link in the imap driver */
230	mail_link (&nntpdriver);      /* link in the nntp driver */
231	mail_link (&pop3driver);      /* link in the pop3 driver */
232 #if !(WIN32|WINNT)
233	mail_link (&mhdriver);        /* link in the mh driver */
234	mail_link (&mxdriver);        /* link in the mx driver */
235 #endif
236	mail_link (&mbxdriver);       /* link in the mbx driver */  <---- too defined !!!!!!!!
237	mail_link (&tenexdriver);     /* link in the tenex driver */
238	mail_link (&mtxdriver);       /* link in the mtx driver */

 225, 236 line, mail_link($mbxdriver) is twice defined.

  delete 225 line, and MUST Compile php source.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-23 00:52 UTC] jim
Fixed in latest CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 03:01:32 2025 UTC