msgpack.php v0.7.1 Release Notes

Release Date: 2020-12-04 // over 3 years ago
    • ➕ Added PHP 8 support
    • ➕ Added MessagePack\TypeTransformer\StreamTransformer to pack stream resources into MP_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 use BufferUnpacker::release()

    🛠 Fixed

    • 🛠 Fixed the BufferUnpacker constructor to accept UnpackOptions instead of PackOptions
    • 🛠 Fixed checking the buffer size required to unpack Ext (previously the Ext "type" byte wasn't taken into account which could result in a notice Uninitialized 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