Create macro for accessing zval class or type name

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.4.0-beta1, 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: