msgpack.php v0.7.1 Release Notes
Release Date: 2020-12-04 // over 4 years ago-
- ➕ Added PHP 8 support
- ➕ Added
MessagePack\TypeTransformer\StreamTransformer
to pack stream resources intoMP_BIN
- ✂ Removed trailing dot from error messages
Previous changes from v0.7.0
-
➕ Added
BufferUnpacker::getRemainingCount()
BufferUnpacker::hasRemaining()
- 🚀
BufferUnpacker::release()
UnpackOptions::BIGINT_AS_DEC
✂ Removed
InsufficientDataException::unexpectedLength()
IntegerOverflowException
UnpackOptions::BIGINT_AS_EXCEPTION
🔄 Changed
- 🚀
BufferUnpacker::tryUnpack()
no longer releases the read buffer, to release the buffer useBufferUnpacker::release()
🛠 Fixed
- 🛠 Fixed the
BufferUnpacker
constructor to acceptUnpackOptions
instead ofPackOptions
- 🛠 Fixed checking the buffer size required to unpack
Ext
(previously theExt
"type" byte wasn't taken into account which could result in a noticeUninitialized string offset
for extensions with zero-length data) - ⚠ Forbade non-int/string map keys (previously they were silently cast to int/string which could result in a warning
Illegal offset type
)
Misc
- ➕ Added a target file for PHP-Fuzzer
- ➕ Added
.gitattributes
- 🐳 Switched default PHP version in Docker to 7.4
- Applied minor optimizations