|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-18 16:02 UTC] pajoye@php.net
[2009-02-18 17:00 UTC] ogi at triangle dot bg
[2009-02-18 17:03 UTC] pajoye@php.net
[2009-02-18 17:05 UTC] ogi at triangle dot bg
[2009-02-18 17:11 UTC] pajoye@php.net
[2009-02-18 17:12 UTC] ogi at triangle dot bg
[2009-02-18 17:16 UTC] pajoye@php.net
[2010-09-07 11:19 UTC] pajoye@php.net
[2010-09-07 11:19 UTC] pajoye@php.net
-Status: Bogus
+Status: Duplicate
[2010-09-07 11:20 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 15:00:01 2025 UTC |
Description: ------------ Any DNS name passed to fsockopen is not recognized. Everything in the system works fine with DNS names - Firefox, nslookup command-line utility, DNS Client service is started. If it matters, PHP is installed as module in Apache 2.2.10. Reproduce code: --------------- var_dump(fsockopen(gethostbyname('localhost'), 80)); var_dump(fsockopen('localhost', 80)); Expected result: ---------------- resource(2) of type (stream) resource(3) of type (stream) Actual result: -------------- resource(2) of type (stream) Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\Program Files\drupal\i.php on line 4 bool(false)