Pecl php net mongo

Pecl php net mongo

** New Feature
* [PHPC-2083] — BSON handling for enum classes

** Task
* [PHPC-1710] — Document upcoming signature changes in interfaces
* [PHPC-1929] — ReadConcern tests need not exhaustively test each constant
* [PHPC-1945] — Remove class_exists checks from SKIPIF blocks in Decimal128 tests
* [PHPC-2064] — SKIPIF output may be ignored for tests using skip_if_not_clean on PHP 8.1
* [PHPC-2111] — Replace zend_parse_parameter_calls with PHONGO_PARSE_PARAMETERS macros
* [PHPC-2115] — Remove manual fetching of DateTimeImmutable class entry
* [PHPC-2117] — Test with PHP 8.2 on GitHub Actions
* [PHPC-2118] — Use debian11 and include MongoDB 6.0 for load balancer testing
* [PHPC-2124] — Ensure that null is still accepted for optional parameters
* [PHPC-2128] — Create stub files for functions
* [PHPC-2130] — Remove proto definitions from source files
* [PHPC-2136] — Final modifier should precede method visibility in stub files
* [PHPC-2143] — Add Windows builds to GitHub Actions and publish DLLs for releases
* [PHPC-2146] — Refactor type map struct
* [PHPC-2147] — Update AppVeyor config to clone PHP fork of the Windows SDK
* [PHPC-2153] — Test with PHP 8.2 on Evergreen
* [PHPC-2154] — Test with PHP 8.2 on Appveyor
* [PHPC-2166] — Use void keyword in prototypes for functions that take no parameters

Читайте также:  Python вывод двоичного числа

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

The Official MongoDB PHP driver

License

mongodb/mongo-php-driver

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

This extension is developed atop the libmongoc and libbson libraries. It provides a minimal API for core driver functionality: commands, queries, writes, connection management, and BSON serialization.

Userland PHP libraries that depend on this extension may provide higher level APIs, such as query builders, individual command helper methods, and GridFS. Application developers should consider using this extension in conjunction with the MongoDB PHP library, which implements the same higher level APIs found in MongoDB drivers for other languages.

To build and install the driver:

$ pecl install mongodb $ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` 

Additional installation instructions may be found in the PHP.net documentation.

This extension is intended to be used alongside the MongoDB PHP Library, which is distributed as the mongodb/mongodb package for for Composer.

Issues pertaining to the extension should be reported in the PHPC project in MongoDB’s JIRA. Library-related issues should be reported in the PHPLIB project.

For general questions and support requests, please use one of MongoDB’s Technical Support channels.

If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions in Create a Vulnerability Report.

Development is tracked in the PHPC project in MongoDB’s JIRA. Documentation for contributing to this project may be found in CONTRIBUTING.md.

About

The Official MongoDB PHP driver

Источник

Pecl php net mongo

Скомпилированные модули для каждой версии прикрепляются к » выпускам на GitHub. Архивы публикуются для различных комбинаций версии PHP, потоковой безопасности (TS или NTS) и архитектуры (x86 или x64). Определите правильный архив для вашего окружения и извлеките файл php_mongodb.dll директорию с модулями PHP (по умолчанию «ext»).

Добавьте следующую строку в файл php.ini для каждого окружения, в котором вы собираетесь использовать драйвер:

Неправильный выбор двоичного файла приведёт к возникновению ошибки при попытке загрузить DLL модуля во время выполнения:

PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb'
  • Версия PHP ( PHP_VERSION )
  • Потоковая безопасность ( PHP_ZTS )
  • Архитектура ( PHP_INT_SIZE )

В дополнение к вышеупомянутым константам, эти свойства также можно определить с помощью функции phpinfo() . Если в вашей системе установлено несколько версий PHP, дважды проверьте, что вы изучаете вывод функции phpinfo() для правильного окружения.

Замечание: Дополнительные зависимости DLL для пользователей Windows

Для работы этого модуля системной переменной Windows PATH должны быть доступны DLL -файлы. Чтобы узнать как этого достичь, обратитесь к разделу FAQ «Как добавить мою директорию с PHP в переменную Windows PATH». Хотя копирование DLL-файлов из директории PHP в системную папку Windows также решает проблему (потому что системная директория по умолчанию находится в переменной PATH ), это не рекомендуется. Этому модулю требуются следующие файлы в переменной PATH : libsasl.dll

Источник

Pecl php net mongo

** Epic
* [PHPC-1150] — Support SDAM Monitoring

** New Feature
* [PHPC-1805] — Implement ServerDescription class
* [PHPC-1891] — Implement TopologyDescription class
* [PHPC-1892] — Define SDAMSubscriber interface
* [PHPC-1893] — Define SDAM event classes
* [PHPC-1900] — Allow custom service names with srvServiceName URI option
* [PHPC-1908] — Allow limiting mongos servers with srvMaxHosts option

** Task
* [PHPC-1342] — Add documentation warning against the use of duplicate key names
* [PHPC-1909] — Set minWireVersion to 6 (MongoDB 3.6)
* [PHPC-1953] — Create tests for event object debug handlers
* [PHPC-1958] — Ensure that getTopologyId() gives the same result for all SDAM events
* [PHPC-1959] — Change SDAM event tests to use Manager::addSubscriber()
* [PHPC-1973] — Bump maxWireVersion to 14 for MongoDB 5.1
* [PHPC-2008] — writeresult-getserver-002 fails to drop collection in local db on replicaset-auth
* [PHPC-2012] — Remove extra AX_CHECK_COMPILE_FLAG args
* [PHPC-2019] — Remove Solaris checks in m4 build scripts
* [PHPC-2022] — Use mongoc_host_list in event structs
* [PHPC-2023] — Allow observation of TopologyClosedEvent
* [PHPC-2028] — Replace PHONGO_ALLOC_OBJECT_T macro with zend_object_alloc
* [PHPC-2031] — Upgrade libmongoc to 1.21.1 and libmongocrypt to 1.3.2
* [PHPC-2034] — Bump maxWireVersion for MongoDB 5.2
* [PHPC-2036] — Remove outdated prose test in causal consistency spec
* [PHPC-2037] — Remove vim modeline comments
* [PHPC-2038] — Initialize zval in phongo_clientencryption_init
* [PHPC-2039] — Remove disabled debugging code in bson.c
* [PHPC-2040] — Break down php_phongo.c into smaller files
* [PHPC-2042] — Remove conditional win32/time.h include in UTCDateTime.c
* [PHPC-2047] — Update load balancer tests to support dedicated load balancer port
* [PHPC-2073] — Remove test environments and checks for pre-3.6 server versions
* [PHPC-2074] — Clarify in contributing docs that mongo-orchestration is not required to run tests

In case of missing DLLs, consider to contact the PHP for Windows Team.

Источник

Оцените статью