Skip to content

INET type throws error on correct value #20

@sspat

Description

@sspat

Given an IPv6 value of ::ffff:10.233.65.138, I cannot save it to the database, as the regexp validation in \Doctrine\DBAL\PostgresTypes\InetType::convertToDatabaseValue does not pass for it.

This value passes a check with filter_var

var_dump(filter_var('::ffff:10.233.65.138', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)); // string(20) "::ffff:10.233.65.138"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions