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

Driver classes do not report properties for var_export()

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.3.1
    • Component/s: None
    • Labels:

      Driver classes (e.g. Manager, Cursor, ReadPreference, WriteResult) only implement the get_debug_info object handler. This allows them to produce output for var_dump(), but not var_export(), which depends on get_properties.

      For the convenience of users that prefer to debug using var_export(), we should report the same information in get_properties as we currently do with get_debug_info today. Note that there is no need to implement __set_state() (we do not do so for BSON classes, which implemented get_properties in PHPC-460).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: