Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-208

Use a fixed field name for ODS BinaryData class name

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.4.0
    • Affects Version/s: 0.2.0
    • Component/s: None
    • None

      Current behavior in php_phongo_bson_visit_binary() derives the hydration class from the last field it encounters that (1) containing binary data (2) with a sub-type of 0x80 and (3) contains a valid class name (after autoloading).

      While this is deterministic and clever, since it does not depend on a particular field name, it could lead to confusion among users. Using a dedicated, short field name that implies we're actually storing a PHP or HHVM class name would be more straightforward.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: