Bug #76136 [Opn->Csd]: stream_socket_get_name should enclose IPv6 in brackets

From: Date: Sat, 07 Jul 2018 09:48:40 +0000
Subject: Bug #76136 [Opn->Csd]: stream_socket_get_name should enclose IPv6 in brackets
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216195@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76136&edit=1 ID: 76136 Updated by: nikic@php.net Reported by: kelunik@php.net Summary: stream_socket_get_name should enclose IPv6 in brackets -Status: Open +Status: Closed Type: Bug Package: Streams related Operating System: Linux PHP Version: 7.2.3 Block user comment: N Private report: N New Comment: Automatic comment on behalf of alexeyseliverstov.dev@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=95013042bf85ce1f52e476c5cc301faa97f52a72 Log: Fixed bug #76136 (stream_socket_get_name enclosed IPv6 in brackets) Previous Comments: ------------------------------------------------------------------------ [2018-05-01 10:44:11] andrew dot nester dot dev at gmail dot com I just added PR fixing this issue https://github.com/php/php-src/pull/3228 ------------------------------------------------------------------------ [2018-03-22 10:28:45] kelunik@php.net Description: ------------ See title, the brackets are missing. Test script: --------------- <?php // See https://3v4l.org/biJe1 $server = stream_socket_server("tcp://[::1]:1337/"); var_dump(stream_socket_get_name($server, false)); Expected result: ---------------- [::1]:1337 Actual result: -------------- ::1:1337 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76136&edit=1

« previous php.bugs (#216195) next »