Skip to content

2.12.2

Choose a tag to compare

@laminas-bot laminas-bot released this 06 Aug 07:33
· 599 commits to 4.5.x since this release
2.12.2
36f5cef

Release Notes for 2.12.2

2.12.x bugfix release (patch)

With 2.12.0, a better key length handling for the PSR-16 decorator was introduced. The decorator initially supported 64 characters which was the minimum which PSR-16 requires to be supported by implementing cache backends. The redis adapter can take keys up to a length of 512 MB which results in a PCRE2 compilation error when validating the cache key length with the PSR-16 decorator.

This release decreases the maximum allowed key length for the PSR-16 decorator to 65534 to avoid that compilation error. Technically, this would be a BC break, but given the fact that cache adapters with a support for keys bigger than that ran into the compilation error when validating the cache keys, this is rather a necessary bugfix.

Changed

  • The maximum supported key length for the PSR-16 decorator is now 65534

Fixes

  • By decreasing the maximum supported key length for the PSR-16 decorator, preg_match won't result in a compilation error for cache adapters which would support even longer keys.

2.12.2

  • Total issues resolved: 1
  • Total pull requests resolved: 1
  • Total contributors: 2

Bug