Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

preg_match(): Compilation failed: regular expression is too large at offset 156184Β #219

@ac-dc

Description

@ac-dc

This happens while using Zend\Validator\Hostname->isValid('[email protected]') because hostname/Biz.php contains enormous regular expression

Trace looks like this:

preg_match('/^[\x{002d}0-9a-z\x{3447}\x{3473}\x{359..(156088 chars skipped)..9FA0}\x{9FA2}\x{9FA4}\x{9FA5}]{1,20}$/iu','tapi4457@hsoqvf')
/vendor/zendframework/zend-validator/src/Hostname.php:1877

PHP Version 7.1.7

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