|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-30 06:32 UTC] alan dot klestoff at gmail dot com
[2014-04-03 09:44 UTC] mike@php.net
-Status: Open
+Status: Not a bug
[2014-04-03 09:44 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 19:00:01 2025 UTC |
Description: ------------ When using fsockopen if the ip address specified for hostname is local and within the subnet mask range, and UDP is specified as the transport method, the returned handle will var_dump as a resource of type stream, even if the ip address doesn't exist on the network - indicating a false positive for some reason. Test script: --------------- $socket = fsockopen('UDP://192.168.213.23:12345', $errno, $errstr, 30); //assuming that subnet mask is 255.255.255.0 - port can be anything var_dump($socket); Expected result: ---------------- bool(false); //possibly e_warning that domain is not valid Actual result: -------------- resource(8) of type (stream)