Implement get_properties_for handler from PHP 7.4

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      While working on PHPC-1598, I learned that PHP 7.4 introduced a new get_properties_for handler in 7ec8087. That API would allow us to explicitly handle var_export (among other contexts) and avoid the issue in PHPC-1598 where relying on get_properties for debugging purposes caused issues with garbage collection.

      We should investigate whether we can start using the new handler while also providing a BC layer for versions prior to 7.4.

            Assignee:
            Jérôme Tamarelle
            Reporter:
            Jeremy Mikola (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: