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

Regenerate function arginfo using a stable version of PHP 8.2

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      php/php-src#9406 changed how gen_stub.php generated arginfo for namespaced functions. This was merged in php/php-src@f7d42f6 and included in PHP 8.2.0.

      The existing arginfo for PHPC's functions was introduced in 2b03e66 and pre-dates that change. It was likely generated using an RC of PHP 8.2.

      The arginfo should be regenerated so we have something produced by a stable PHP release.

      This was noticed when introducing new functions in PHPC-2180 and encountering unrelated symbol lookup failures due to the arginfo headers using a different identifier than the actual PHP_FUNCTION() implementations. For example, I observed the following error after regenerating arginfo, recompiling the driver, and attempting to load mongodb.so for the test suite:

      undefined symbol: zif_MongoDB_BSON_fromJSON
      

            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: