#22258 [WFx->NoF]: imap_open() always fails when running as NSAPI
| From: | thetaphi@php.net | Date: | Fri, 20 Jun 2003 23:33:48 +0000 |
| Subject: | #22258 [WFx->NoF]: imap_open() always fails when running as NSAPI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42293@lists.php.net to get a copy of this message | ||
ID: 22258
Updated by: thetaphi@php.net
Reported By: gandhia at agcs dot com
-Status: Wont fix
+Status: No Feedback
Bug Type: iPlanet related
Operating System: Solaris 2.8
PHP Version: 4.3.0
Previous Comments:
------------------------------------------------------------------------
[2003-03-13 13:09:50] thetaphi@php.net
seems to be the same problem like bug #20274. Could be that some
fopen() or fdopen() fails when using stream to IMAP.
------------------------------------------------------------------------
[2003-02-17 17:16:35] sniper@php.net
This is most likely some thread safety issue:
http://httpd.apache.org/docs-2.0/developer/thread_safety.html
Adding the url here as reference to any other possible
issues with PHP. This is not really PHP problem..
------------------------------------------------------------------------
[2003-02-17 15:25:52] 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("{srv.abc.com:143/imap}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 {srv.abc.com:143/imap}INBOX
in /usr/SUNWips/public_html/agtest.php on line 2
Can't connect to srv.abc.com,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().
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22258&edit=1