Bug #17469 [Opn->Bgs]: Query for "=test.com" returns "Unable to open socket"

From: Date: Wed, 09 Jun 2010 13:17:00 +0000
Subject: Bug #17469 [Opn->Bgs]: Query for "=test.com" returns "Unable to open socket"
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-3902@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17469&edit=1 ID: 17469 Updated by: hm2k@php.net Reported By: hm2k at php dot net Summary: Query for "=test.com" returns "Unable to open socket" -Status: Open +Status: Bogus Type: Bug Package: Net_Whois Package Version: 1.0.3 PHP Version: 5.3.2 Roadmap Versions: New Comment: -Status: Open +Status: Bogus Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PEAR. Further details and fix in bug #17476 Previous Comments: ------------------------------------------------------------------------ [2010-06-06 11:17:37] hm2k 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=17469&edit=1

« previous php.pear.bugs (#3902) next »