zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

Hostname validator produces notice on empty domainPart #240

Closed andreasschroth closed 5 years ago

andreasschroth commented 5 years ago

Example input: some-random-email@.com

Notice + first call:

grapheme_strpos: Offset not contained in string---#0 /private/vendor/zendframework/zend-stdlib/src/StringWrapper/Intl.php(86): grapheme_strpos('', '-', 0)
#1 /private/vendor/zendframework/zend-validator/src/Hostname.php(2103): Zend\\Stdlib\\StringWrapper\\Intl->strpos('', '-')
andreasschroth commented 5 years ago

PR proposed.