Require PHP Mongodb Driver for PHP 8.2 version

Created on 18 February 2024, 10 months ago
Updated 19 February 2024, 10 months ago

Require PHP MongoDB driver for PHP version 8.2

We are using the PHP version 8.2 and we do not see the required PHP Mongodb driver to support this version

💬 Support request
Status

Postponed: needs info

Version

2.1

Component

Base module (driver)

Created by

🇮🇳India preetam.chari

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @preetam.chari
  • Status changed to Postponed: needs info 10 months ago
  • 🇫🇷France fgm Paris, France

    I do not understand your question: you mention version 8.x-2.1 and that version already supports all versions of PHP >= 8.0, as specified in the composer.json file.

    Can you explain what you are trying to do and what problem you are encountering ?

  • 🇮🇳India preetam.chari

    Hi Frédéric,

    I have 2 PHP versions on my 2 laptops, one official(PHP 8.2) and one personal(PHP 8.1).
    I downloaded the PHP MongoDB driver from https://pecl.php.net/package/mongodb
    1.13.0 stable 2022-03-23 mongodb-1.13.0.tgz (1406.5kB) DLL

    This DLL file if we have a look https://pecl.php.net/package/mongodb/1.13.0/windows the support is for the below versions, the latest is PHP 8.1, I am not able to find the DLL file for PHP version 8.2. I have downloaded the one which is marked in bold. This works on my personal laptop as I have PHP 8.1, but I do not have the DLL file for PHP version 8.2. So I require the DLL file for PHP version 8.2

    PHP 8.1 8.1 Non Thread Safe (NTS) x64
    8.1 Thread Safe (TS) x64
    8.1 Non Thread Safe (NTS) x86
    8.1 Thread Safe (TS) x86
    PHP 8.0 8.0 Non Thread Safe (NTS) x64
    8.0 Thread Safe (TS) x64
    8.0 Non Thread Safe (NTS) x86
    8.0 Thread Safe (TS) x86
    PHP 7.4 7.4 Non Thread Safe (NTS) x64
    7.4 Thread Safe (TS) x64
    7.4 Non Thread Safe (NTS) x86
    7.4 Thread Safe (TS) x86

  • 🇫🇷France fgm Paris, France

    OK, so if I understand your explanation, the problem is that are not able to install the mongodb PHP extension for MongoDB on a Windows machine, is that right ?

    According to the page you linked to, there is no PHP 8.2 support in 1.13, which is a legacy version. AFAICS, the current version you want is 1.17.2 for PHP. See also https://pecl.php.net/package/mongodb/1.17.2

    The windows binaries are available from https://github.com/mongodb/mongo-php-driver/releases as explained on that same page you linked to.

    Are you able to install the driver that way ? Note that this is not related to Drupal, so you might find more efficient support on the MongoDB or PHP support channels.

Production build 0.71.5 2024