@weierophinney weierophinney released this Feb 1, 2018 · 2 commits to master since this release

Assets 2

Added

  • #202 adds the ability to use custom constant types in extensions of Zend\Validator\CreditCard, fixing an issue where users were unable to add new brands as they are created.

  • #203 adds support for the new Russian bank card "Mir".

  • #204 adds support to the IBAN validator for performing SEPA validation against Croatia and San Marino.

  • #209 adds documentation for the Explode validator.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #195 adds missing GpsPoint validator entries to the ValidatorPluginManager, ensuring they may be retrieved from it correctly.

  • #212 updates the CSRF validator to automatically mark any non-string values as invalid, preventing errors such as array to string conversion.

@weierophinney weierophinney released this Aug 22, 2017 · 47 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #194 modifies the EmailAddress validator to omit the INTL_IDNA_VARIANT_UTS46 flag to idn_to_utf8() if the constant is not defined, fixing an issue on systems using pre-2012 releases of libicu.

@weierophinney weierophinney released this Aug 14, 2017 · 57 commits to master since this release

Assets 2

Added

  • #175 adds support for PHP 7.2 (conditionally, as PHP 7.2 is currently in beta1).

  • #157 adds a new validator, IsCountable, which allows validating:

    • if a value is countable
    • if a countable value exactly matches a configured count
    • if a countable value is greater than a configured minimum count
    • if a countable value is less than a configured maximum count
    • if a countable value is between configured minimum and maximum counts

Changed

  • #169 modifies how the various File validators check for readable files. Previously, they used stream_resolve_include_path, which led to false negative checks when the files did not exist within an include_path (which is often the case within a web application). These now use is_readable() instead.

  • #185 updates the zend-session requirement (during development, and in the suggestions) to 2.8+, to ensure compatibility with the upcoming PHP 7.2 release.

  • #187 updates the Between validator to require that both a min and a max value are provided to the constructor, and that both are of the same type (both integer/float values and/or both string values). This fixes issues that could previously occur when one or the other was not set, but means an exception will now be raised during instantiation (versus runtime during isValid()).

  • #188 updates the ConfigProvider to alias the service name ValidatorManager to the class Zend\Validator\ValidatorPluginManager, and now maps the the latter class to the ValidatorPluginManagerFactory. Previously, we mapped the service name directly to the factory. Usage should not change for anybody at this point.

Deprecated

  • Nothing.

Removed

  • #175 removes support for HHVM.

Fixed

  • #160 fixes how the EmailAddress validator handles the local part of an address, allowing it to support unicode.

@weierophinney weierophinney released this Jul 20, 2017 · 139 commits to master since this release

Assets 2

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #180 fixes how Zend\Validator\File\MimeType "closes" the open FileInfo handle for the file being validated, using unset() instead of finfo_close(); this resolves a segfault that occurs on older PHP versions.
  • #174 fixes how Zend\Validator\Between handles two situations: (1) when a non-numeric value is validated against numeric min/max values, and (2) when a numeric value is validated against non-numeric min/max values. Previously, these incorrectly validated as true; now they are marked invalid.
Jul 13, 2017
zend-validator 2.4.13
Jun 19, 2017
zend-validator 2.4.12

@weierophinney weierophinney released this May 17, 2017 · 160 commits to master since this release

Assets 2

Added

  • Nothing.

Changes

  • #154 updates the CreditCard validator to allow 19 digit Discover card values, and 13 and 19 digit Visa card values, which are now allowed (see https://en.wikipedia.org/wiki/Payment_card_number).
  • #162 updates the Hostname validator to support .hr (Croatia) IDN domains.
  • #163 updates the Iban validator to support Belarus.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #168 fixes how the ValidatorPluginManagerFactory factory initializes the plugin manager instance, ensuring it is injecting the relevant configuration from the config service and thus seeding it with configured validator services. This means that the validators configuration will now be honored in non-zend-mvc contexts.

@Xerkus Xerkus released this Mar 17, 2017 · 206 commits to master since this release

Assets 2

Added

  • #78 added %length% as an optional message variable in StringLength validator

Deprecated

  • Nothing.

Removed

  • #151 dropped php 5.5 support

Fixed

  • #147
    #148 adds further "suggest" clauses in composer.json, since some dependencies are not always required, and may lead to runtime failures.
  • #66 fixed EmailAddress validator applying IDNA conversion to local part
  • #88 fixed NotEmpty validator incorrectly applying types bitmaps
  • #150 fixed Hostname validator not allowing some characters in .dk IDN

@akrabat akrabat released this Jan 29, 2017 · 284 commits to master since this release

Assets 2

Added

  • #110 adds new
    Mastercard 2-series BINs

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #81 registers the
    Uuid validator into ValidatorPluginManager.
  • Updated hostname TLDs.
Dec 19, 2016
zend-validator 2.4.11