Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-407

MongoBinData should default to type 0 instead of 2

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.5.0, 1.5.0RC1
    • Component/s: pecl-mongo
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • # Replies:
      15
    • Last comment by Customer:
      true

      Description

      According to http://bsonspec.org/#/specification, type \x00 should be the default for BinData:

      This is the most commonly used binary subtype and should be the 'default' for drivers and tools.

      Type \x02, the PHP driver's current default, is deprecated:

      This used to be the default subtype, but was deprecated in favor of \x00. Drivers and tools should be sure to handle \x02 appropriately. The structure of the binary data (the byte* array in the binary non-terminal) must be an int32 followed by a (byte*). The int32 is the number of bytes in the repetition.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  3 years, 40 weeks, 5 days ago
                  Date of 1st Reply: