[dev] IMAP problem on IMP
Alfonso Marín Marín
almarin at um.es
Mon Dec 3 11:28:32 UTC 2007
Hi all,
I've got a problem trying to connect my IMP installation with a IMAP
server. After digg a bit on the code, i found the reason. A imap_open
call gave me this error:
* Warning*: Wrong parameter count for imap_open() in
*/var/www/consigna/correo/lib/IMAP.php* on line *138
*My PHP version is 5.2.1, and in that line exists a exception:
if (version_compare(PHP_VERSION, '5.2.1') != -1) {
$ret = imap_open(IMP::serverString($mbox), $this->_user,
$this->_pass, $imap_flags, $_SESSION['imp']['login_tries']);
} else {
...
If I remove the last $_SESSION parameter everithing work fine. ¿Why do
you use that parameter in PHP 5.2.1?
Thanks a lot.
Alfonso.
--
Alfonso Marín Marín
Sección de Telemática - ATICA
Universidad de Murcia
http://www.um.es/atica
Tlf: 968 39 8742
More information about the dev
mailing list