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

Driver classes do not report properties for var_export()

    XMLWordPrintable

    Details

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

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jmikola Jeremy Mikola
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: