Bug #16562 Updated: imap_open does not open port after PHP upgrade
| From: | mfischer@php.net | Date: | Fri, 12 Apr 2002 16:52:07 +0000 |
| Subject: | Bug #16562 Updated: imap_open does not open port after PHP upgrade | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4756@lists.php.net to get a copy of this message | ||
ID: 16562
Updated by: mfischer@php.net
Reported By: php.net@actionweb.com
-Status: Open
+Status: Closed
Bug Type: IMAP related
Operating System: RedHat 6.x
PHP Version: 4.1.2
New Comment:
Actually it's the imap library whose syntax did change, not PHP itself.
Previous Comments:
------------------------------------------------------------------------
[2002-04-12 12:23:53] php.net@actionweb.com
I thought I'd tried that already, but there must have been something
else wrong when I did, because that fixed it. Thanks. :-)
Side note... the reason I was trying it that way is because that's how
NOCC v.0.92 (see http://sourceforge.net/projects/nocc/ )was
successfully doing it. I guess the syntax for imap_open isn't as
flexible as it used to be. My guess is that they've fixed NOCC in
later versions and that's why no one else seems to be having this
problem.
It's always a bummer when something that worked in a previous version
of PHP stops working in the current one. But, as it stands, I guess
that's not PHP's problem... this is a NOCC bug. Unfortunately, I've
got to go track down dozens of old NOCC installations (on lots of
different servers) and fix the syntax to the way the current PHP wants
to see it. :-(
------------------------------------------------------------------------
[2002-04-12 10:44:18] sniper@php.net
What if you use this instead:
$mbox = imap_open ("{localhost:110/pop3}INBOX", "user_id",
"password");
(straight from the manual)
------------------------------------------------------------------------
[2002-04-11 23:29:07] php.net@actionweb.com
After upgrading to PHP 4.1.2 from 4.0.4pl1 and doing this:
imap_open("{hostname/POP3:110}INBOX", "userid", "password")
...simply returns "Couldn't open stream" when trying to talk to
POP3/110. I checked tcpdump and I see nothing happening on port 110.
Switching back to 4.0.4pl1 fixes the problem. Tried installing the
latest c-client and still nothing. Seems something about imap_open has
been broken in this version.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16562&edit=1