|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-06 04:52 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2015-08-06 04:52 UTC] requinix@php.net
[2015-08-16 04:23 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
Description: ------------ On a server with support for IPv4 and IPv6, whereas the target domains support both protocols, the fsockopen function only works with IPv4, causing timeout when try to connect via IPv6. Test script: --------------- $con = fsockopen('mx.mydomain.com', 587, $errno, $errstr, 10); if(empty($con)) echo "Not connected: ".$errno." - ".$errstr; else echo "Connected!"; Expected result: ---------------- Connected! Actual result: -------------- Not connected: 110 - Connection timed out