#7132 [Opn->Asn]: fsockopen doesn't report dns lookup failure
| From: | nlopess@php.net | Date: | Thu, 11 Aug 2005 16:43:50 +0000 |
| Subject: | #7132 [Opn->Asn]: fsockopen doesn't report dns lookup failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83379@lists.php.net to get a copy of this message | ||
ID: 7132
Updated by: nlopess@php.net
Reported By: kaufmann at cyland dot com
-Status: Open
+Status: Assigned
Bug Type: Feature/Change Request
Operating System: SuSE Linux 6.4
PHP Version: 4.0.2
-Assigned To:
+Assigned To: wez
New Comment:
Wez, can you please take a look at my patch?
http://mega.ist.utl.pt/~ncpl/php_7132_patch.txt
test script:
<?
$bogus = 'www.aasaaaaaaaaaaaaa.net';
fsockopen($bogus, 80, $errno, $errstr);
echo $errno, "\n";
var_dump($errstr);
?>
This patch also fixes the problem of having two warnings generated,
instead of just one.
Previous Comments:
------------------------------------------------------------------------
[2000-10-11 06:36:14] kaufmann at cyland dot com
fsockopen doesn't report dns lookup failure in errno and errstr. It
would be nice if this error was passed including a hint what is wrong
with the call to fsockopen. Debugging of skripts using sockets would
become easier.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=7132&edit=1