Bug #80102 [Fbk->Dup]: stream_socket_client can't connect

From: Date: Mon, 14 Sep 2020 12:55:57 +0000
Subject: Bug #80102 [Fbk->Dup]: stream_socket_client can't connect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228999@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80102&edit=1 ID: 80102 Updated by: cmb@php.net Reported by: contact at laurent-aubertin dot com Summary: stream_socket_client can't connect -Status: Feedback +Status: Duplicate Type: Bug Package: Sockets related Operating System: ubuntu PHP Version: 7.4.10 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: That's a duplicate of bug #80067, which has already been fixed; the fix will be contained in PHP 7.4.11. Previous Comments: ------------------------------------------------------------------------ [2020-09-14 12:28:57] contact at laurent-aubertin dot com The error comes from a bad value in the context parameter. Migration to PHP 7.4.10 created this bad value. The problem is not in stream_socket_client but elsewhere. I continue to search for the source of the problem. Sorry for this false alert on this feature. The ticket can be closed. ------------------------------------------------------------------------ [2020-09-14 11:50:58] sjon@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. > var_dump(stream_socket_client('tcp://127.0.0.1:7687')); this works fine for me - does this single line fail for you as well? ------------------------------------------------------------------------ [2020-09-14 11:48:22] contact at laurent-aubertin dot com Description: ------------ error : Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:7687 (Failed to parse address "null") this connection work fine in PHP 7.4.9 No change in my code, just upgrade from 7.4.9 to 7.4.10 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80102&edit=1

« previous php.bugs (#228999) next »