From:             gandhia at agcs dot com
Operating system: Solaris 2.8
PHP version:      4.3.0
PHP Bug Type:     iPlanet related
Bug description:  imap_open() always fails when running as NSAPI

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 bug report at http://bugs.php.net/?id=22258&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22258&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22258&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22258&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22258&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22258&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22258&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22258&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22258&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22258&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22258&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22258&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22258&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22258&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22258&r=gnused

Reply via email to