diff options
-rw-r--r-- | PHPINFO | 11 | ||||
-rw-r--r-- | REFLECTION | 120 | ||||
-rw-r--r-- | php-pecl-mongodb.spec | 86 |
3 files changed, 156 insertions, 61 deletions
@@ -2,12 +2,10 @@ mongodb MongoDB support => enabled -MongoDB extension version => 1.19.4 +MongoDB extension version => 1.21.1 MongoDB extension stability => stable -libbson headers version => 1.27.6 -libbson library version => 1.27.6 -libmongoc headers version => 1.27.6 -libmongoc library version => 1.27.6 +libbson bundled version => 1.30.5 +libmongoc bundled version => 1.30.5 libmongoc SSL => enabled libmongoc SSL library => OpenSSL libmongoc crypto => enabled @@ -19,8 +17,7 @@ libmongoc compression => enabled libmongoc compression snappy => enabled libmongoc compression zlib => enabled libmongoc compression zstd => enabled -libmongocrypt headers version => 1.11.0 -libmongocrypt library version => 1.11.0 +libmongocrypt bundled version => 1.12.0 libmongocrypt crypto => enabled libmongocrypt crypto library => libcrypto crypt_shared library version => unknown @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { +Extension [ <persistent> extension #132 mongodb version 1.21.1 ] { - Dependencies { Dependency [ date (Required) ] @@ -14,40 +14,40 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { } - Constants [2] { - Constant [ string MONGODB_VERSION ] { 1.19.4 } + Constant [ string MONGODB_VERSION ] { 1.21.1 } Constant [ string MONGODB_STABILITY ] { stable } } - Functions { - Function [ <internal:mongodb> function MongoDB\BSON\fromJSON ] { + Function [ <internal, deprecated:mongodb> function MongoDB\BSON\fromJSON ] { - Parameters [1] { Parameter #0 [ <required> string $json ] } - Return [ string ] } - Function [ <internal:mongodb> function MongoDB\BSON\fromPHP ] { + Function [ <internal, deprecated:mongodb> function MongoDB\BSON\fromPHP ] { - Parameters [1] { Parameter #0 [ <required> object|array $value ] } - Return [ string ] } - Function [ <internal:mongodb> function MongoDB\BSON\toCanonicalExtendedJSON ] { + Function [ <internal, deprecated:mongodb> function MongoDB\BSON\toCanonicalExtendedJSON ] { - Parameters [1] { Parameter #0 [ <required> string $bson ] } - Return [ string ] } - Function [ <internal:mongodb> function MongoDB\BSON\toJSON ] { + Function [ <internal, deprecated:mongodb> function MongoDB\BSON\toJSON ] { - Parameters [1] { Parameter #0 [ <required> string $bson ] } - Return [ string ] } - Function [ <internal:mongodb> function MongoDB\BSON\toPHP ] { + Function [ <internal, deprecated:mongodb> function MongoDB\BSON\toPHP ] { - Parameters [2] { Parameter #0 [ <required> string $bson ] @@ -55,7 +55,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { } - Return [ object|array ] } - Function [ <internal:mongodb> function MongoDB\BSON\toRelaxedExtendedJSON ] { + Function [ <internal, deprecated:mongodb> function MongoDB\BSON\toRelaxedExtendedJSON ] { - Parameters [1] { Parameter #0 [ <required> string $bson ] @@ -495,7 +495,15 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Static properties [0] { } - - Static methods [2] { + - Static methods [3] { + Method [ <internal:mongodb> final static public method fromJSON ] { + + - Parameters [1] { + Parameter #0 [ <required> string $json ] + } + - Return [ MongoDB\BSON\PackedArray ] + } + Method [ <internal:mongodb> final static public method fromPHP ] { - Parameters [1] { @@ -516,7 +524,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Properties [0] { } - - Methods [14] { + - Methods [16] { Method [ <internal:mongodb, ctor> private method __construct ] { - Parameters [0] { @@ -554,6 +562,20 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ object|array ] } + Method [ <internal:mongodb> final public method toCanonicalExtendedJSON ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ <internal:mongodb> final public method toRelaxedExtendedJSON ] { + + - Parameters [0] { + } + - Return [ string ] + } + Method [ <internal:mongodb, prototype ArrayAccess> public method offsetExists ] { - Parameters [1] { @@ -1794,11 +1816,11 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Properties [0] { } - - Methods [8] { + - Methods [9] { Method [ <internal:mongodb, ctor> final public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> DateTimeInterface|string|int|float|null $milliseconds = null ] + Parameter #0 [ <optional> DateTimeInterface|MongoDB\BSON\Int64|string|int|float|null $milliseconds = null ] } } @@ -1809,6 +1831,13 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ DateTime ] } + Method [ <internal:mongodb> final public method toDateTimeImmutable ] { + + - Parameters [0] { + } + - Return [ DateTimeImmutable ] + } + Method [ <internal:mongodb, prototype MongoDB\BSON\UTCDateTimeInterface> final public method __toString ] { - Parameters [0] { @@ -1874,7 +1903,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Parameters [0] { } - - Tentative return [ MongoDB\Driver\CursorId ] + - Tentative return [ MongoDB\Driver\CursorId|MongoDB\BSON\Int64 ] } Method [ <internal:mongodb> abstract public method getServer ] { @@ -1968,13 +1997,15 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { Class [ <internal:mongodb> final class MongoDB\Driver\ClientEncryption ] { - - Constants [7] { + - Constants [9] { Constant [ public string AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC ] { AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic } Constant [ public string AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM ] { AEAD_AES_256_CBC_HMAC_SHA_512-Random } Constant [ public string ALGORITHM_INDEXED ] { Indexed } Constant [ public string ALGORITHM_UNINDEXED ] { Unindexed } + Constant [ public string ALGORITHM_RANGE ] { Range } Constant [ public string ALGORITHM_RANGE_PREVIEW ] { RangePreview } Constant [ public string QUERY_TYPE_EQUALITY ] { equality } + Constant [ public string QUERY_TYPE_RANGE ] { range } Constant [ public string QUERY_TYPE_RANGE_PREVIEW ] { rangePreview } } @@ -2145,9 +2176,10 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { Method [ <internal:mongodb, prototype MongoDB\Driver\CursorInterface> final public method getId ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> bool $asInt64 = false ] } - - Return [ MongoDB\Driver\CursorId ] + - Tentative return [ MongoDB\Driver\CursorId|MongoDB\BSON\Int64 ] } Method [ <internal:mongodb, prototype MongoDB\Driver\CursorInterface> final public method getServer ] { @@ -2606,7 +2638,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ int ] } - Method [ <internal:mongodb> final public method getMode ] { + Method [ <internal, deprecated:mongodb> final public method getMode ] { - Parameters [0] { } @@ -5026,7 +5058,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Properties [0] { } - - Methods [11] { + - Methods [13] { Method [ <internal:mongodb, ctor> final private method __construct ] { - Parameters [0] { @@ -5061,6 +5093,13 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ Exception ] } + Method [ <internal:mongodb> final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] + } + Method [ <internal:mongodb> final public method getOperationId ] { - Parameters [0] { @@ -5068,6 +5107,13 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ string ] } + Method [ <internal:mongodb> final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] + } + Method [ <internal:mongodb> final public method getReply ] { - Parameters [0] { @@ -5082,7 +5128,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ string ] } - Method [ <internal:mongodb> final public method getServer ] { + Method [ <internal, deprecated:mongodb> final public method getServer ] { - Parameters [0] { } @@ -5119,7 +5165,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Properties [0] { } - - Methods [9] { + - Methods [11] { Method [ <internal:mongodb, ctor> final private method __construct ] { - Parameters [0] { @@ -5147,6 +5193,13 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ string ] } + Method [ <internal:mongodb> final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] + } + Method [ <internal:mongodb> final public method getOperationId ] { - Parameters [0] { @@ -5154,6 +5207,13 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ string ] } + Method [ <internal:mongodb> final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] + } + Method [ <internal:mongodb> final public method getRequestId ] { - Parameters [0] { @@ -5161,7 +5221,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ string ] } - Method [ <internal:mongodb> final public method getServer ] { + Method [ <internal, deprecated:mongodb> final public method getServer ] { - Parameters [0] { } @@ -5198,7 +5258,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Properties [0] { } - - Methods [10] { + - Methods [12] { Method [ <internal:mongodb, ctor> final private method __construct ] { - Parameters [0] { @@ -5226,6 +5286,13 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ int ] } + Method [ <internal:mongodb> final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] + } + Method [ <internal:mongodb> final public method getOperationId ] { - Parameters [0] { @@ -5233,6 +5300,13 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ string ] } + Method [ <internal:mongodb> final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] + } + Method [ <internal:mongodb> final public method getReply ] { - Parameters [0] { @@ -5247,7 +5321,7 @@ Extension [ <persistent> extension #110 mongodb version 1.19.4 ] { - Return [ string ] } - Method [ <internal:mongodb> final public method getServer ] { + Method [ <internal, deprecated:mongodb> final public method getServer ] { - Parameters [0] { } diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec index c54d222..13bd868 100644 --- a/php-pecl-mongodb.spec +++ b/php-pecl-mongodb.spec @@ -1,52 +1,46 @@ # remirepo spec file for php-pecl-mongodb # -# Copyright (c) 2015-2024 Remi Collet -# License: CC-BY-SA-4.0 -# http://creativecommons.org/licenses/by-sa/4.0/ +# SPDX-FileCopyrightText: Copyright 2015-2025 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # -%if 0%{?scl:1} -%scl_package php-pecl-mongodb -%else -%global _root_prefix %{_prefix} -%endif +%{?scl:%scl_package php-pecl-mongodb} %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global pie_vend mongodb +%global pie_proj mongodb-extension %global pecl_name mongodb # After 40-smbclient.ini, see https://jira.mongodb.org/browse/PHPC-658 %global ini_name 50-%{pecl_name}.ini # test suite requires a MongoDB server -%bcond_with tests +%bcond_with tests -# temp for EL until available in EPEL -%if 0%{?fedora} >= 37 || 0%{?rhel} >= 8 -%bcond_without syslib -%else +# always use bundled libraries %bcond_with syslib -%endif # Bundled versions -%global bundled_libmongo 1.27.6 -%global bundled_libcrypt 1.10.1 -# Required versions -%global minimal_libmongo 1.27.6 -%global minimal_libcrypt 1.10.1 +%global bundled_libmongo 1.30.5 +%global bundled_libcrypt 1.12.0 +# Required versions (in config.m4) +%global minimal_libmongo 1.30.5 +%global minimal_libcrypt 1.12.0 %if %{with syslib} -# Build dependencies -%global system_libmongo 1.27.5 -%global system_libcrypt 1.10.1 +# Build dependencies (in repository) +%global system_libmongo 1.30 +%global system_libcrypt 1.12 # Runtime dependencies %global runtime_libmongo %(pkg-config --silence-errors --modversion libmongoc-1.0 2>/dev/null || echo %{system_libmongo}) %global runtime_libcrypt %(pkg-config --silence-errors --modversion libmongocrypt 2>/dev/null || echo %{system_libcrypt}) %endif -Summary: MongoDB driver for PHP +Summary: MongoDB driver for PHP version 1 Name: %{?scl_prefix}php-pecl-%{pecl_name} -%global upstream_version 1.19.4 +%global upstream_version 1.21.1 #global upstream_prever beta1 #global upstream_lower ~beta1 %global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} @@ -63,7 +57,7 @@ Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upst BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.4 +BuildRequires: %{?scl_prefix}php-devel >= 8.1 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json %if %{with syslib} @@ -98,14 +92,19 @@ Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-json%{?_isa} # Don't provide php-mongodb which is the pure PHP library -Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version} +Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version} %description The purpose of this driver is to provide exceptionally thin glue between MongoDB and PHP, implementing only fundemental and performance-critical components necessary to build a fully-functional MongoDB driver. +This package provides version 1 of the extension, +php-pecl-mongodb2 provides version 2. + Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. @@ -118,7 +117,6 @@ sed -e 's/role="test"/role="src"/' \ pushd %{sources} -%if %{with syslib} # Check our macro values cat src/*_VERSION_CURRENT grep -q %{bundled_libmongo} src/LIBMONGOC_VERSION_CURRENT @@ -128,6 +126,7 @@ grep CHECK_MODULES config.m4 grep -q %{minimal_libmongo} config.m4 grep -q %{minimal_libcrypt} config.m4 +%if %{with syslib} # temporary: lower minimal required versions sed -e 's/%{minimal_libmongo}/%{system_libmongo}/;s/%{minimal_libcrypt}/%{system_libcrypt}/' -i config.m4 %endif @@ -180,11 +179,13 @@ peclbuild() { --with-mongodb-client-side-encryption \ --enable-mongodb - make %{?_smp_mflags} + %make_build } cd %{sources} %{__phpize} +sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global + %if %{with syslib} # Ensure we use system library # Need to be removed only after phpize because of m4_include @@ -203,7 +204,7 @@ peclbuild %{__ztsphpconfig} %install %{?dtsenable} -make -C NTS install INSTALL_ROOT=%{buildroot} +%make_install -C NTS # install config file install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} @@ -212,7 +213,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml %if %{with_zts} -make -C ZTS install INSTALL_ROOT=%{buildroot} +%make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif @@ -304,6 +305,29 @@ exit $ret %changelog +* Mon Jun 16 2025 Remi Collet <remi@remirepo.net> - 1.21.1-1 +- update to 1.21.1 +- use bundled libbson and libmongc 1.30.5 + +* Thu Apr 10 2025 Remi Collet <remi@remirepo.net> - 1.21.0-2 +- rebuild using bundled libraries +- add note in description about php-pecl-mongodb2 + +* Fri Feb 28 2025 Remi Collet <remi@remirepo.net> - 1.21.0-1 +- update to 1.21.0 +- raise dependency on PHP 8.1 +- raise dependency on libbson and libmongc 1.30 +- raise dependency on libmongocrypt 1.12 + +* Wed Nov 27 2024 Remi Collet <remi@remirepo.net> - 1.20.1-1 +- update to 1.20.1 + +* Mon Sep 30 2024 Remi Collet <remi@remirepo.net> - 1.20.0-2 +- EL: rebuild with system libraries + +* Tue Sep 24 2024 Remi Collet <remi@remirepo.net> - 1.20.0-1 +- update to 1.20.0 + * Mon Sep 9 2024 Remi Collet <remi@remirepo.net> - 1.19.4-1 - update to 1.19.4 |