Bug #17125 Updated: Can't connect to socket on domain starting with a digit

From: Date: Mon, 01 Jul 2002 21:09:43 +0000
Subject: Bug #17125 Updated: Can't connect to socket on domain starting with a digit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12717@lists.php.net to get a copy of this message
ID: 17125 Updated by: jason@php.net Reported By: len@sendmail.ru -Status: Open +Status: Bogus Bug Type: Sockets related Operating System: Linux PHP Version: 4.1.2 New Comment: 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 http://www.php.net/support.php 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 -jason Previous Comments: ------------------------------------------------------------------------ [2002-05-09 13:28:11] len@sendmail.ru Ok, here's more info: this script: http://www.abcda.com/fun/sock.php tries to open a socket connection to the server. Here's its source: <?php 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> </form> now, if you enter www.9o9o.com in the field which is my hoster, you get a fsockopen timeout, it just doesn't connect. ------------------------------------------------------------------------ [2002-05-09 13:04:08] jan@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php 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 24inch.org and 123.org with the example from http://php.net/fsockopen. Everything works as expected. Maybe you can be a bit more verbose. ------------------------------------------------------------------------ [2002-05-09 12:58:07] len@sendmail.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17125&edit=1

« previous php.bugs (#12717) next »