Skip to content

Regression breaks mysql connexion using an IPv6 address enclosed in square brackets #20528

@qeepcologne

Description

@qeepcologne

Description

run phpmyadmin (5.2.3-1.el9.remi). works fine with php 8.4.14 (and older) and broken on php 8.4.15

Resulted in this output on Log in:

mysqli::real_connect(): (HY000/2002): Failed to parse IPv6 address "[2a01:4f8:221:3687::2]"

If this change is intended, it should be clearly documented (I don't think so for bugfix release)

config is quite straightforward:

...
$cfg['Servers'][$i]['host']          = '[2a01:4f8:221:3687::2]';
$cfg['Servers'][$i]['port']          = ''; 
$cfg['Servers'][$i]['socket']        = '';
$cfg['Servers'][$i]['connect_type']  = 'tcp';
$cfg['Servers'][$i]['extension']     = 'mysqli';
$cfg['Servers'][$i]['compress']      = FALSE;
$cfg['Servers'][$i]['ssl'] = true;
...

PHP Version

PHP 8.4.15 (cli) (built: Nov 18 2025 17:26:05) (NTS gcc x86_64)
Copyright (c) The PHP Group
Built by Remi's RPM repository <https://rpms.remirepo.net/> #StandWithUkraine
Zend Engine v4.4.15, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.15, Copyright (c), by Zend Technologies

Operating System

CentOS Stream release 9

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions