zendframework/zf2 — pull request #6104 by sasezaki (2014-04-08 14:12:04+00:00)
Title: Validator\Ip should not allow newlines in any case.

```php
isValid("127.000.000.001")); // true (expected)
var_dump((new Ip)->isValid("127.000.000.001\n")); // true (Unexpected)
var_dump((new Ip)->isValid("127.0.0.1\n")); //false (expected)
```

This issue was caused by ZF-10621
https://github.com/zendframework/zf2/commit/29516d4#diff-1f6ffee384d80d41af718d92b4b7ea76R144

related fix http://framework.zend.com/issues/browse/ZF-8640