[dev] IMAP problem on IMP
Chuck Hagenbuch
chuck at horde.org
Mon Dec 3 15:35:42 UTC 2007
Quoting Alfonso Marín Marín <almarin at um.es>:
> 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?
We *don't* use the parameter in 5.2.1.
Are you using a packaged version of PHP that might have been patched
so that it doesn't match its version?
-chuck
More information about the dev
mailing list