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

Support for internationalized email address local part #160

Merged

Conversation

Xerkus
Copy link
Member

@Xerkus Xerkus commented Apr 5, 2017

RFC 6532 extends atext used in local part with non-ascii unicode support

I have no idea what am i doing here. It seems to be working, but it would be great if someone understanding unicode could verify.

@Xerkus Xerkus force-pushed the hotfix/internationalized-local-part branch from 1a0ffdb to 7f8ab4d Compare April 5, 2017 20:32
nidzho and others added 19 commits April 10, 2017 15:32
Added expression to validate .hr IDN domains
add ibanRegExp for Belarus.

'BY' => 'BY[0-9]{2}[A-Z0-9]{4}[0-9]{4}[A-Z0-9]{16}'

https://www.nbrb.by/engl/payment/IBANBIC
Closes opened file with finfo to avoid segfault on specific PHP versions
Per https://discourse.zendframework.com/t/validatormanager-not-calling-custom-validator-factory/109/5?u=matthew
the `validators` config key is not honored currently unless the
application is within a zend-mvc context. This is due to the fact that
`Zend\Validator\Module` wires configuration for the
`Zend\ModuleManager\Listener\ServiceListener` in order to push merged
service configuration into the plugin during bootstrap; no similar logic
is available when not in a zend-mvc context, however.

This patch fixes that situation by modifying the
`ValidatorPluginManagerFactory` to do the following:

- If a `ServiceListener` service exists, it returns the plugin manager
  immediately (old behavior).
- Otherwise, it checks for the `config` service, and, if found, a
  `validators` key with an array value. When found, it feeds that value
  to a `Zend\ServiceManager\Config` instance and uses that to configure
  the plugin manager before returning it.
…e name

Doesn't affect tests, but it removes a WTF.
- No ValidatorInterface instance was needed for last two test cases
…ifications

Enable Travis CI slack notifications
fixed a bug where empty $email was passed to idn_to_utf8
weierophinney and others added 24 commits July 25, 2017 08:54
Use is_readable() to check if file is readable
Should return `self` for fluent interfaces, class name when returning
new instance (immutable classes).
Updates `Hostname` validator TLD list.
Add PHP 7.2 support, drop HHVM

Conflicts:
	.travis.yml
- Whitespace following `function` keyword
- Uses newlines and indentation to group conditional statements
Updates the zend-session requirement to v2.8+, to ensure compatibility
with PHP 7.2.
…max in setOptions which is used by the constructor, use getter methods instead of options field in isValid, report NOT_COUNTABLE as a validation error rather than throwing an exception, and use `$this->` instead of `self::` for assertions in test case.
add IsCountable validator, to enforce type and count elements.
…x value

Since there is no way to clear a `count`, this is the only way to ensure
that behavior remains as expected when merging options from disparate
sources.
…ized-local-part

Support for internationalized email address local part
…part as an argument

Allows the method to not rely on instance state.
@weierophinney weierophinney merged commit 360379d into zendframework:develop Jul 26, 2017
weierophinney added a commit that referenced this pull request Jul 26, 2017
weierophinney added a commit that referenced this pull request Jul 26, 2017
@weierophinney
Copy link
Member

Thanks, @Xerkus; merged to develop for release with 2.10.0.

@Xerkus
Copy link
Member Author

Xerkus commented Jul 26, 2017

ugh, what is going on here with the commits and comments?

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

Successfully merging this pull request may close these issues.