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

Replace usage of deprecated bson-atomics.h API

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 1.21.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • PHP Drivers

      CDRIVER-5702 deprecated the bson-atomics.h API in libmongoc 1.29. PHPC relied on this for incrementing phongo_num_threads from the GINIT and GSHUTDOWN handlers, in order to determine when it was appropriate to call mongoc_cleanup() and bson_mem_restore_vtable().

      We'll need to come up with a suitable replacement.

      Note that PHP 8.4 amended the zend_atomic API to support integer operations (php/php-src@1ab4520); however, that's likely too new to rely on.

            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: