Skip to content
This repository has been 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

Open
ac-dc opened this issue Feb 21, 2018 · 1 comment

Comments

@ac-dc
Copy link

ac-dc commented Feb 21, 2018

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

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at laminas/laminas-validator#8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants