php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62891 Error codes
Submitted: 2012-08-22 12:09 UTC Modified: 2012-08-23 01:15 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dagguh at gmail dot com Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
36 - 14 = ?
Subscribe to this entry?

 
 [2012-08-22 12:09 UTC] dagguh at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.fsockopen
---
Error codes are not documented. Error messages might be insufficient or simply 
wrong.
We are getting error code 146 with error message "Connection refused".
Our network team state that there is no possibility of connection being refused, 
because the machines are in the same subnetwork.
We are using fsockopen with a 1 second timeout. I wonder if this error is simply 
the timeout, but fsockopen reports wrong error.

If error codes were documented, we would be sure what exactly "Connection 
refused" means and maybe we would see a seperate error for a timeout.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-23 01:15 UTC] aharvey@php.net
-Status: Open +Status: Wont fix -Package: Sockets related +Package: Documentation problem
 [2012-08-23 01:15 UTC] aharvey@php.net
Ultimately, the error codes in I/O-related warning and error messages are entirely OS-dependent. I don't think there's a lot we can do here that would make things better rather than worse: trying to cover the common cases may only lead to confusion for people using less common operating systems.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 09:01:28 2024 UTC