msgpack.php v0.7.0 Release Notes

Release Date: 2020-01-29 // 2 months ago
  • ➕ 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

Previous changes from v0.6.1

  • Gave transformers a higher priority than raw extensions while packing