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

Compile failure with PHP's master branch (8.1-dev)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.1
    • Affects Version/s: 1.9.0
    • Component/s: None
    • None

      Compiling the MongoDB extension with the current development version of PHP (it's 'master' branch) fails with:

      /tmp/pear/temp/mongodb/src/MongoDB/BulkWrite.c: In function ‘php_phongo_bulkwrite_init_ce’:
      /tmp/pear/temp/mongodb/src/MongoDB/BulkWrite.c:672:52: error: ‘spl_ce_Countable’ undeclared (first use in this function); did you mean ‘zend_ce_countable’?
        672 |  zend_class_implements(php_phongo_bulkwrite_ce, 1, spl_ce_Countable);
            |                                                    ^~~~~~~~~~~~~~~~
            |                                                    zend_ce_countable
      /tmp/pear/temp/mongodb/src/MongoDB/BulkWrite.c:672:52: note: each undeclared identifier is reported only once for each function it appears in
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            atlas@derickrethans.nl Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: