Klein v2.1.1 Release Notes
Release Date: 2016-11-01 // over 7 years ago-
🔋 Features
- 0️⃣ Header keys are now normalized, by default, to their canonical MIME format for consistency
- Header key normalization is now customizable
- 🐎 Internal callback data-structures were moved from arrays to more appropriate SplQueue and SplStack instances, providing performance and memory footprint improvements
- ⚡️ The PHPUnit version used for tests has been updated for HHVM compatibility
- PHP 7.0 and HHVM compatibility!
🐛 Bug fixes
- ⚡️ A few internal property/attribute names have been updated for consistency
- ✅ An iteration bug effecting tests run under certain HHVM runtime versions has been fixed
- ⚡️ The README document has been updated to fix a few errors
- ⚡️ The
file()
method in theResponse
class has been updated to fix an issue found when run under PHP-FPM - The
file()
method in theResponse
class will no longer send theContent-Length
header when the response has been chunked, to comply with the HTTP requirements defined in RFC 2616 - ⚡️ References to the old https://github.com/chriso/klein.php repository URL have been updated to the new repository URL home of Klein: https://github.com/klein/klein.php
- ⚡️ Tests were updated to pass under an expanded number of PHP runtime versions and configurations
- 🛠 A potential output buffer stack miss-handling in the dispatch process has been fixed
⬆️ Upgrading
🗄 Deprecations
- 🗄 The
HeaderDataCollection::normalizeName()
method has been deprecated in favor of using new normalization options (via constant switches) and other more specific methods on the same class
Interface Changes
- Three of the Klein internal callback attributes have changed both name and data structure. These attributes are protected, so the effect will only be felt by users that have extended and/or overwritten Klein's internal behaviors. The following changes were made:
Klein#errorCallbacks
was renamed toKlein#error_callbacks
and it's array data-structure was changed to use anSplStack
Klein#httpErrorCallbacks
was renamed toKlein#http_error_callbacks
and it's array data-structure was changed to use anSplStack
Klein#afterFilterCallbacks
was renamed toKlein#after_filter_callbacks
and it's array data-structure was changed to use anSplQueue
- 0️⃣
Validator#defaultAdded
was renamed toValidator#default_added