|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22258 imap_open() always fails when running as NSAPI
Submitted: 2003-02-17 15:25 UTC Modified: 2003-06-23 17:27 UTC
From: gandhia at agcs dot com Assigned:
Status: Closed Package: iPlanet related
PHP Version: 4.3.0 OS: Solaris 2.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.
Block user comment
Status: Assign to:
Bug Type:
From: gandhia at agcs dot com
New email:
PHP Version: OS:


 [2003-02-17 15:25 UTC] gandhia at agcs dot com
Under an iPlanet 4.1 SP11 web server, with PHP compiled as an NSAPI module, imap_open() always fails. It does not even attempt to make a connection to the IMAP server. However, the same code, executed in the PHP CLI works perfectly.

Here is a sample of a script that does not work under the NSAPI module, but works under the CLI:

  imap_open("{}INBOX", "user", "pass");
  print imap_last_error();

When run under the NSAPI module, the following error is generated:
Warning: imap_open(): Couldn't open stream {}INBOX in /usr/SUNWips/public_html/agtest.php on line 2
Can't connect to,143: No such file or directory

The remote IMAP server is an iPlanet Messaging server, but this is irrelevant as traces have shown that the connection is not even attempted when running as NSAPI.

A truss revealed only that once connect() is called, in the success case (the CLI) time() and poll() follow, but under NSAPI, close() immediately follows the call to connect().


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-17 17:16 UTC]
This is most likely some thread safety issue:

Adding the url here as reference to any other possible
issues with PHP. This is not really PHP problem..

 [2003-03-13 13:09 UTC]
seems to be the same problem like bug #20274. Could be that some fopen() or fdopen() fails when using stream to IMAP.
 [2003-06-20 18:34 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2003-06-23 17:27 UTC]
I guess messed around with the quick-resolve's, this propably was supposed to be closed as fixed in CVS..

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 14:01:33 2024 UTC