|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-18 10:11 UTC] mike@php.net
-Status: Open
+Status: Bogus
[2010-05-18 10:11 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
Description: ------------ Specifying any IP address for bindto in stream_context_set_option() produces an error "(local_addr context option is not a string.)" Reproduce code: --------------- $context = stream_context_create (); stream_context_set_option ($context, 'socket', 'bindto', '127.0.0.1:0'); $contents = file_get_contents ("http://php.net", FALSE, $context); Expected result: ---------------- Should return the contents of php.net Actual result: -------------- Warning: file_get_contents(http://php.net/): failed to open stream: local_addr context option is not a string.