Hello!

I'm stuck on a problem with PHP 4.3.11, openssl-0.9.7e and imap2004a
under Solaris 9.
I can't get IMAPS to work. IMAP is working.

Warning: imap_open(): Couldn't open stream {mail.cray.pp.se:993/ssl} in
/usr/local/apache-2.0.53/htdocs/imap.php on line 2
Failed with error: Can't open mailbox {mail.cray.pp.se:993/ssl}: invalid
remote specification
Notice: (null)(): Can't open mailbox {mail.cray.pp.se:993/ssl}: invalid
remote specification (errflg=2) in Unknown on line 0

Test script:
<?php
$mbox = imap_open("{mail.cray.pp.se:993/ssl}", "temp2", "xxxxxxxxx") or
die ("Failed with error: ".imap_last_error());

imap_close($mbox);
?>


The test script runs perfectly on other machines running php, but not
this one (i.e. mailserver is working correctly). If I'm using ordinary
IMAP ({mail.cray.pp.se:143}) it works perfectly, but without SSL.



PHP is compiled with these flags:

./configure  --with-apxs2=/usr/local/apache-2.0.53/bin/apxs
--with-mysql=/usr/local/mysql --prefix=/usr/local/php-4.3.11
--with-gettext --with-xml --with-dom
--with-mcrypt --with-zlib=/usr/local
--with-imap=/usr/local/src/imap-2004a
--with-openssl=/usr/local/openssl-0.9.7e
--with-openssl-dir=/usr/local/openssl-0.9.7e --with-mime-magic
--with-ldap=/usr/local/openldap-2.2.24
--with-imap-ssl=/usr/local/openssl-0.9.7e

The configure command says it finds IMAP SSL with a reference to the
openssl-0.9.7e directory.

php -m reports openssl


Any ideas?
Thanks.


-- 

Stefan Lindström

Reply via email to