FAQ
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".

------------------------------------------------------------------------

Search Discussions

  • Hm2k at Jun 6, 2010 at 4:24 pm
    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
    +Status: Duplicate
    Type: Bug
    Package: Net_Whois
    Package Version: 1.0.3
    PHP Version: 5.3.2
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Duplicate



    Previous Comments:
    ------------------------------------------------------------------------

    [2010-06-06 11:18:39] hm2k

    Please remove this bug report, it was added again here:

    http://pear.php.net/bugs/bug.php?id=17469

    ------------------------------------------------------------------------

    [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".

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 6, '10 at 10:25a
activeJun 6, '10 at 4:24p
posts2
users1
websitepear.php.net

1 user in discussion

Hm2k: 2 posts

People

Translate

site design / logo © 2022 Grokbase