summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO8
-rw-r--r--REFLECTION64
-rw-r--r--php-pecl-mongodb2.spec24
3 files changed, 77 insertions, 19 deletions
diff --git a/PHPINFO b/PHPINFO
index ea96710..4761aaf 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,10 +2,10 @@
mongodb
MongoDB support => enabled
-MongoDB extension version => 2.1.8
+MongoDB extension version => 2.2.0
MongoDB extension stability => stable
-libbson bundled version => 1.30.7
-libmongoc bundled version => 1.30.7
+libbson bundled version => 2.2.2
+libmongoc bundled version => 2.2.2
libmongoc SSL => enabled
libmongoc SSL library => OpenSSL
libmongoc crypto => enabled
@@ -17,7 +17,7 @@ libmongoc compression => enabled
libmongoc compression snappy => enabled
libmongoc compression zlib => enabled
libmongoc compression zstd => enabled
-libmongocrypt bundled version => 1.12.0
+libmongocrypt bundled version => 1.17.2
libmongocrypt crypto => enabled
libmongocrypt crypto library => libcrypto
crypt_shared library version => unknown
diff --git a/REFLECTION b/REFLECTION
index 01b24a9..acd0945 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
+Extension [ <persistent> extension #140 mongodb version 2.2.0 ] {
- Dependencies {
Dependency [ date (Required) ]
@@ -14,7 +14,7 @@ Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
}
- Constants [2] {
- Constant [ <persistent> string MONGODB_VERSION ] { 2.1.8 }
+ Constant [ <persistent> string MONGODB_VERSION ] { 2.2.0 }
Constant [ <persistent> string MONGODB_STABILITY ] { stable }
}
@@ -44,7 +44,7 @@ Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
}
}
- - Classes [79] {
+ - Classes [80] {
Interface [ <internal:mongodb> interface MongoDB\BSON\Type ] {
- Constants [0] {
@@ -753,7 +753,7 @@ Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
Class [ <internal:mongodb> final class MongoDB\BSON\Binary implements Stringable, MongoDB\BSON\BinaryInterface, JsonSerializable, MongoDB\BSON\Type ] {
- - Constants [10] {
+ - Constants [11] {
Constant [ public int TYPE_GENERIC ] { 0 }
Constant [ public int TYPE_FUNCTION ] { 1 }
Constant [ public int TYPE_OLD_BINARY ] { 2 }
@@ -763,13 +763,23 @@ Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
Constant [ public int TYPE_ENCRYPTED ] { 6 }
Constant [ public int TYPE_COLUMN ] { 7 }
Constant [ public int TYPE_SENSITIVE ] { 8 }
+ Constant [ public int TYPE_VECTOR ] { 9 }
Constant [ public int TYPE_USER_DEFINED ] { 128 }
}
- Static properties [0] {
}
- - Static methods [1] {
+ - Static methods [2] {
+ Method [ <internal:mongodb> final static public method fromVector ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> array $vector ]
+ Parameter #1 [ <required> MongoDB\BSON\VectorType $vectorType ]
+ }
+ - Return [ MongoDB\BSON\Binary ]
+ }
+
Method [ <internal:mongodb> final static public method __set_state ] {
- Parameters [1] {
@@ -782,7 +792,7 @@ Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
- Properties [0] {
}
- - Methods [7] {
+ - Methods [9] {
Method [ <internal:mongodb, ctor> final public method __construct ] {
- Parameters [2] {
@@ -805,6 +815,20 @@ Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
- Return [ int ]
}
+ Method [ <internal:mongodb> final public method getVectorType ] {
+
+ - Parameters [0] {
+ }
+ - Return [ MongoDB\BSON\VectorType ]
+ }
+
+ Method [ <internal:mongodb> final public method toArray ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
+
Method [ <internal:mongodb, prototype MongoDB\BSON\BinaryInterface> final public method __toString ] {
- Parameters [0] {
@@ -1623,6 +1647,34 @@ Extension [ <persistent> extension #140 mongodb version 2.1.8 ] {
}
}
+ Class [ <internal:mongodb> class MongoDB\BSON\VectorType implements UnitEnum ] {
+
+ - Constants [3] {
+ Constant [ public MongoDB\BSON\VectorType Float32 ] { Object }
+ Constant [ public MongoDB\BSON\VectorType Int8 ] { Object }
+ Constant [ public MongoDB\BSON\VectorType PackedBit ] { Object }
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb, prototype UnitEnum> static public method cases ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
+ }
+
+ - Properties [1] {
+ Property [ public protected(set) readonly string $name ]
+ }
+
+ - Methods [0] {
+ }
+ }
+
Interface [ <internal:mongodb> interface MongoDB\Driver\CursorInterface extends Iterator, Traversable ] {
- Constants [0] {
diff --git a/php-pecl-mongodb2.spec b/php-pecl-mongodb2.spec
index f8ccd4b..f2cc1c9 100644
--- a/php-pecl-mongodb2.spec
+++ b/php-pecl-mongodb2.spec
@@ -20,16 +20,16 @@
%bcond_with syslib
# Bundled versions
-%global bundled_libmongo 1.30.7
-%global bundled_libcrypt 1.12.0
+%global bundled_libmongo 2.2.2
+%global bundled_libcrypt 1.17.2
# Required versions (in config.m4)
-%global minimal_libmongo 1.30.7
-%global minimal_libcrypt 1.12.0
+%global minimal_libmongo 2.2.2
+%global minimal_libcrypt 1.17.2
%if %{with syslib}
# Build dependencies (in repository)
-%global system_libmongo 1.30
-%global system_libcrypt 1.12
+%global system_libmongo 2.2.2
+%global system_libcrypt 1.17.2
# 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})
@@ -37,7 +37,7 @@
Summary: MongoDB driver for PHP version 2
Name: %{?scl_prefix}php-pecl-%{pecl_name}2
-%global upstream_version 2.1.8
+%global upstream_version 2.2.0
#global upstream_prever beta1
#global upstream_lower ~beta1
%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
@@ -126,8 +126,9 @@ sed -e 's/role="test"/role="src"/' \
pushd %{sources}
# Check our macro values
-cat src/*_VERSION_CURRENT
-grep -q %{bundled_libmongo} src/LIBMONGOC_VERSION_CURRENT
+cat src/libmongoc/VERSION_CURRENT
+grep -q %{bundled_libmongo} src/libmongoc/VERSION_CURRENT
+cat src/LIBMONGOCRYPT_VERSION_CURRENT
grep -q %{bundled_libcrypt} src/LIBMONGOCRYPT_VERSION_CURRENT
grep CHECK_MODULES config.m4
@@ -264,6 +265,11 @@ OPT="-n"
%changelog
+* Wed Feb 11 2026 Remi Collet <remi@remirepo.net> - 2.2.0-1
+- update to 2.2.0
+- use bundled libbson and libmongc 2.2.2
+- use bundled libmongocrypt 1.12
+
* Thu Feb 5 2026 Remi Collet <remi@remirepo.net> - 2.1.8-1
- update to 2.1.8
- use bundled libbson and libmongc 1.30.7