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

Create macro for accessing zval class or type name

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0-beta1, 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: