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

return_value_ptr and return_value_used removed in PHP 7

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.1
    • Affects Version/s: 1.0.0-alpha2
    • Component/s: None
    • Labels:
      None

      return_value_ptr and return_value_used are removed in PHP 7.

      We don't use return_value_ptr (other then to cast it to (void) to avoid unused-variable warnign), but return_value_used to do use in couple of cases to skip bson encoding/decoding when we know it serves no purpose.

      The return_value_used should be hardcoded to 1 in PHP 7 as there is nothing similar to it anymore.

      For the unused-argument warning, we can create a version macro for it.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: