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

Create macro for accessing zval class or type name

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.4.0-beta1, 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      There is a common need to access the type name or class name of a zval for exception messages. This involves a Z_TYPE() check in a ternary, followed by an access of the class name string or zend_get_type_by_const(). for non-object types. Turning this into a macro would clean up some code.

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

              Created:
              Updated:
              Resolved: