#28419 [Fbk->Opn]: Notice "Refused (10061) (errflg=2) in Unknown on" when IMAP connection refused

From: Date: Mon, 17 May 2004 15:34:42 +0000
Subject: #28419 [Fbk->Opn]: Notice "Refused (10061) (errflg=2) in Unknown on" when IMAP connection refused
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59698@lists.php.net to get a copy of this message
 ID:               28419
 User updated by:  stepanov at transchip dot com
 Reported By:      stepanov at transchip dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         IMAP related
 Operating System: Windows XP Professional SP1
 PHP Version:      4CVS-2004-05-17 (stable)
 New Comment:

Yes, I am using the latest PHP (4.3.7-dev)

I run the folowing:
$mbox = imap_open ("{192.168.0.250:143}Inbox", "xxx", "xxx");

And i get the:
Warning: imap_open(): Couldn't open stream {192.168.0.250:143}Inbox in
C:\html\test\imap.php on line 12

Notice: (null)(): Can't connect to 192.168.0.250,143: Refused (10061)
(errflg=2) in Unknown on line 0

if i run $mbox = @imap_open ("{192.168.0.250:143}Inbox", "xxx",
"xxx");

i get:
Notice: (null)(): Can't connect to 192.168.0.250,143: Refused (10061)
(errflg=2) in Unknown on line 0


Previous Comments:
------------------------------------------------------------------------

[2004-05-17 15:32:11] iliaa@php.net

Are you absolutely sure you are using the latest PHP? I've 
checked the source code of the extension and the only error 
you can get while opening an imap connection can go 
something like this: 
Couldn't open stream ... 

------------------------------------------------------------------------

[2004-05-17 10:06:12] stepanov at transchip dot com

Description:
------------
When IMAP connection is refused I get following notice:
Notice: (null)(): Can't connect to 192.168.0.251,143: Refused (10061)
(errflg=2) in Unknown on line 0


Reproduce code:
---------------
$mbox = @imap_open ("{192.168.0.251:143}Inbox", "user", "pass");

Expected result:
----------------
Because of calling the function with @ I expect don't see the notice.
And if I see the notice, I expect to see the file name and line number
where the error occurred, and not "in Unknown on line 0"

Actual result:
--------------
Notice: (null)(): Can't connect to 192.168.0.251,143: Refused (10061)
(errflg=2) in Unknown on line 0



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28419&edit=1


Thread (5 messages)

« previous php.bugs (#59698) next »