Bug #17468 [Opn]: Query for "=test.com" returns "Unable to open socket"
| From: | hm2k@php.net | Date: | Sun, 06 Jun 2010 11:18:39 +0000 |
| Subject: | Bug #17468 [Opn]: Query for "=test.com" returns "Unable to open socket" | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3883@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17468&edit=1
ID: 17468
Updated by: hm2k@php.net
Reported By: php at hm2k dot org
Summary: Query for "=test.com" returns "Unable to open socket"
Status: Open
Type: Bug
Package: Net_Whois
Package Version: 1.0.3
PHP Version: 5.3.2
Roadmap Versions:
New Comment:
Please remove this bug report, it was added again here:
http://pear.php.net/bugs/bug.php?id=17469
Previous Comments:
------------------------------------------------------------------------
[2010-06-06 11:16:29] #c13177d7d96a5b6bab7
Description:
------------
A search for test.com will return the following:
To single out one record, look it up with "xxx", where xxx is one of
the
of the records displayed above. If the records are the same, look them
up
with "=xxx" to receive a full display for each record.
A query with =test.com will return the following:
Unable to open socket
Test script:
---------------
<?php
$q=isset($_REQUEST['q'])?htmlspecialchars($_REQUEST['q']):NULL;
//pear install Net_Whois-1.0.3
if ($q) {
require_once 'Net/Whois.php';
$whois = new Net_Whois;
$data = $whois->query($q);
$data = htmlspecialchars($data);
echo "<pre>$data</pre>";
}
?>
Expected result:
----------------
Expected the result for test.com
Actual result:
--------------
You'll see "Unable to open socket".
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17468&edit=1