php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28419 Notice "Refused (10061) (errflg=2) in Unknown on" when IMAP connection refused
Submitted: 2004-05-17 10:06 UTC Modified: 2004-12-13 00:55 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: stepanov at transchip dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4CVS-2004-05-17 (stable) OS: Windows XP Professional SP1
Private report: No CVE-ID: None
 [2004-05-17 10:06 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-17 15:32 UTC] 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 17:34 UTC] stepanov at transchip dot com
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
 [2004-11-11 04:19 UTC] tomato at pisem dot net
I'm using php 4.3.8 and getting the same error
furthermore, error_reporting(E_ALL ^ E_NOTICE); didn't helped I got this notice anyway
 [2004-12-13 00:55 UTC] sniper@php.net
The error comes from the c-client library. We can't do anything about it so report to the c-client library author(s) instead.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC