|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17125 Can't connect to socket on domain starting with a digit
Submitted: 2002-05-09 12:58 UTC Modified: 2002-07-01 17:09 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: len at sendmail dot ru Assigned:
Status: Not a bug Package: Sockets related
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: len at sendmail dot ru
New email:
PHP Version: OS:


 [2002-05-09 12:58 UTC] len at sendmail dot ru
Hello, here's my problem:

I am on a site with a domain name starting with a digit. When I try to establish a socket connection to this very site from a script residing on this very site, it doesn't establish connection.

I do it using a standard example from fsockopen() man page. All the other cases work just file, but this one fails.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-09 13:04 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

I tested this with and with the example from Everything works as expected. Maybe you can be a bit more verbose.
 [2002-05-09 13:28 UTC] len at sendmail dot ru
Ok, here's more info:

this script:   tries to open a socket connection to the server.

Here's its source:

if (isset($go)) {
$fp = fsockopen ($url, 80, $errno, $errstr, 30);
if (!$fp) {
   echo "Error: $errstr ($errno)";
} else {
   echo "Opened";
<form action=<?php echo $PHP_SELF ?> method=post>
<input type=text name=url>
<input type=hidden name=go value=1>
<input type=submit name=submit value=connect>

now, if you enter in the field which is my hoster, you get a fsockopen timeout, it just doesn't connect.
 [2002-07-01 17:09 UTC]
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit

Thank you for your interest in PHP.

up your timeout, it has nothing to do with numbers in the string 9o9o is slow on connect

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Oct 06 07:05:52 2022 UTC