From:             a dot bleys at fbk dot eur dot nl
Operating system: Win2K
PHP version:      4CVS-2004-03-11 (stable)
PHP Bug Type:     IMAP related
Bug description:  imap_open fails, other mail clients work fine

Description:
------------
If I try to connect to the imap server, IMAP.fbk.eur.nl, it fails. It
returns: "invalid remote specification", independent of:

* correct username/password

* mailbox name (changing IMAP.fbk.eur.nl to http://www.php.net/ gives the
same error)

* Using port numbers (same result without port as with 143 or 993)

* adding INBOX after the server name



Standard mail clients like netscape, mozilla or novell netmail work fine,
so the server seems to be ok.

Webserver is apache 1.3.



According to the manual
(http://www.php.net/manual/en/function.imap-open.php) my syntax seems to
be ok.



Bug report #27482 suggests that it might be a script/setup problem, but if
so: what are the correct settings?



Reproduce code:
---------------
$mbox = imap_open("{IMAP.fbk.eur.nl/imap/novalidate-cert}", $strUsername,
$strPassword);



if($mbox)

{

  printf("Connected to IMAP server<br><br>\n");

  // Do something....

  imap_close($mbox);

}

else

{

  printf("Could not connect to imap server,<br>Error = %s<br>\n",
imap_last_error());

}

Expected result:
----------------
Connected to IMAP server







Actual result:
--------------
Warning: imap_open(): Couldn't open stream
{IMAP.fbk.eur.nl/imap/novalidate-cert} in c:\program files\apache
group\apache\htdocs\isis\webmail.php on line 29 Could not connect to imap
server,

Error = Can't open mailbox {IMAP.fbk.eur.nl/imap/novalidate-cert}: invalid
remote specification

Notice: (null)(): Can't open mailbox
{IMAP.fbk.eur.nl/imap/novalidate-cert}: invalid remote specification
(errflg=2) in Unknown on line 0Unknown on line 0

-- 
Edit bug report at http://bugs.php.net/?id=27567&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27567&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27567&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27567&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27567&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27567&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27567&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27567&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27567&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27567&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27567&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27567&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27567&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27567&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27567&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27567&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27567&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27567&r=float

Reply via email to