summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO8
-rw-r--r--REFLECTION158
-rwxr-xr-xmakesrc.sh2
-rw-r--r--php-pecl-mongodb2.spec33
4 files changed, 135 insertions, 66 deletions
diff --git a/PHPINFO b/PHPINFO
index ea89132..1bed7ca 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,10 +2,10 @@
mongodb
MongoDB support => enabled
-MongoDB extension version => 2.2.1
+MongoDB extension version => 2.3.0
MongoDB extension stability => stable
-libbson bundled version => 2.2.2
-libmongoc bundled version => 2.2.2
+libbson bundled version => 2.3.0
+libmongoc bundled version => 2.3.0
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.17.2
+libmongocrypt bundled version => 1.17.3
libmongocrypt crypto => enabled
libmongocrypt crypto library => libcrypto
crypt_shared library version => unknown
diff --git a/REFLECTION b/REFLECTION
index 9d49215..bb0a779 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
+Extension [ <persistent> extension #147 mongodb version 2.3.0 ] {
- Dependencies {
Dependency [ date (Required) ]
@@ -14,7 +14,7 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
- Constants [2] {
- Constant [ <persistent> string MONGODB_VERSION ] { 2.2.1 }
+ Constant [ <persistent> string MONGODB_VERSION ] { 2.3.0 }
Constant [ <persistent> string MONGODB_STABILITY ] { stable }
}
@@ -2461,10 +2461,11 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
}
- - Properties [0] {
+ - Properties [1] {
+ Property [ public protected(set) readonly ?string $level ]
}
- - Methods [6] {
+ - Methods [5] {
Method [ <internal:mongodb, ctor> final public method __construct ] {
- Parameters [1] {
@@ -2500,13 +2501,6 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
- Return [ void ]
}
-
- Method [ <internal:mongodb> final public method __serialize ] {
-
- - Parameters [0] {
- }
- - Return [ array ]
- }
}
}
@@ -2535,10 +2529,14 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
}
- - Properties [0] {
+ - Properties [4] {
+ Property [ public protected(set) readonly string $mode ]
+ Property [ public protected(set) readonly ?array $tags ]
+ Property [ public protected(set) readonly int $maxStalenessSeconds ]
+ Property [ public protected(set) readonly ?object $hedge ]
}
- - Methods [8] {
+ - Methods [7] {
Method [ <internal:mongodb, ctor> final public method __construct ] {
- Parameters [3] {
@@ -2548,7 +2546,7 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
}
- Method [ <internal:mongodb> final public method getHedge ] {
+ Method [ <internal, deprecated:mongodb> final public method getHedge ] {
- Parameters [0] {
}
@@ -2590,13 +2588,6 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
- Return [ void ]
}
-
- Method [ <internal:mongodb> final public method __serialize ] {
-
- - Parameters [0] {
- }
- - Return [ array ]
- }
}
}
@@ -3123,10 +3114,13 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
}
- - Properties [0] {
+ - Properties [3] {
+ Property [ public protected(set) readonly string|int|null $w ]
+ Property [ public protected(set) readonly ?bool $j ]
+ Property [ public protected(set) readonly int $wtimeout ]
}
- - Methods [8] {
+ - Methods [7] {
Method [ <internal:mongodb, ctor> final public method __construct ] {
- Parameters [3] {
@@ -3178,13 +3172,6 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
}
- Return [ void ]
}
-
- Method [ <internal:mongodb> final public method __serialize ] {
-
- - Parameters [0] {
- }
- - Return [ array ]
- }
}
}
@@ -3199,7 +3186,10 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [3] {
+ Property [ public protected(set) readonly string $message ]
+ Property [ public protected(set) readonly int $code ]
+ Property [ public protected(set) readonly ?object $info ]
}
- Methods [4] {
@@ -3243,7 +3233,11 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [4] {
+ Property [ public protected(set) readonly string $message ]
+ Property [ public protected(set) readonly int $code ]
+ Property [ public protected(set) readonly int $index ]
+ Property [ public protected(set) readonly ?object $info ]
}
- Methods [5] {
@@ -3294,7 +3288,18 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [11] {
+ Property [ public protected(set) readonly ?int $insertedCount ]
+ Property [ public protected(set) readonly ?int $matchedCount ]
+ Property [ public protected(set) readonly ?int $modifiedCount ]
+ Property [ public protected(set) readonly ?int $deletedCount ]
+ Property [ public protected(set) readonly ?int $upsertedCount ]
+ Property [ public protected(set) readonly MongoDB\Driver\Server $server ]
+ Property [ public protected(set) readonly array $upsertedIds ]
+ Property [ public protected(set) readonly array $writeErrors ]
+ Property [ public protected(set) readonly ?MongoDB\Driver\WriteConcernError $writeConcernError ]
+ Property [ public protected(set) readonly ?MongoDB\Driver\WriteConcern $writeConcern ]
+ Property [ public protected(set) readonly array $errorReplies ]
}
- Methods [12] {
@@ -3876,7 +3881,7 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
Property [ protected string $file = '' ]
Property [ protected int $line = 0 ]
Property [ protected $errorLabels = NULL ]
- Property [ protected $writeResult = NULL ]
+ Property [ public protected(set) readonly MongoDB\Driver\WriteResult $writeResult ]
}
- Methods [12] {
@@ -4118,7 +4123,7 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
Property [ protected string $file = '' ]
Property [ protected int $line = 0 ]
Property [ protected $errorLabels = NULL ]
- Property [ protected $resultDocument = NULL ]
+ Property [ public protected(set) readonly object $resultDocument ]
}
- Methods [12] {
@@ -4859,7 +4864,18 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [11] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly string $commandName ]
+ Property [ public protected(set) readonly string $databaseName ]
+ Property [ public protected(set) readonly int $duration ]
+ Property [ public protected(set) readonly Exception $error ]
+ Property [ public protected(set) readonly object $reply ]
+ Property [ public protected(set) readonly string $operationId ]
+ Property [ public protected(set) readonly string $requestId ]
+ Property [ public protected(set) readonly ?MongoDB\BSON\ObjectId $serviceId ]
+ Property [ public protected(set) readonly ?int $serverConnectionId ]
}
- Methods [12] {
@@ -4959,7 +4975,16 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [9] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly string $commandName ]
+ Property [ public protected(set) readonly string $databaseName ]
+ Property [ public protected(set) readonly object $command ]
+ Property [ public protected(set) readonly string $operationId ]
+ Property [ public protected(set) readonly string $requestId ]
+ Property [ public protected(set) readonly ?MongoDB\BSON\ObjectId $serviceId ]
+ Property [ public protected(set) readonly ?int $serverConnectionId ]
}
- Methods [10] {
@@ -5045,7 +5070,17 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [10] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly string $commandName ]
+ Property [ public protected(set) readonly string $databaseName ]
+ Property [ public protected(set) readonly int $duration ]
+ Property [ public protected(set) readonly object $reply ]
+ Property [ public protected(set) readonly string $operationId ]
+ Property [ public protected(set) readonly string $requestId ]
+ Property [ public protected(set) readonly ?MongoDB\BSON\ObjectId $serviceId ]
+ Property [ public protected(set) readonly ?int $serverConnectionId ]
}
- Methods [11] {
@@ -5260,7 +5295,12 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [5] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly MongoDB\BSON\ObjectId $topologyId ]
+ Property [ public protected(set) readonly MongoDB\Driver\ServerDescription $newDescription ]
+ Property [ public protected(set) readonly MongoDB\Driver\ServerDescription $previousDescription ]
}
- Methods [6] {
@@ -5318,7 +5358,10 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [3] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly MongoDB\BSON\ObjectId $topologyId ]
}
- Methods [4] {
@@ -5362,7 +5405,12 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [5] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly bool $awaited ]
+ Property [ public protected(set) readonly int $duration ]
+ Property [ public protected(set) readonly Exception $error ]
}
- Methods [6] {
@@ -5420,7 +5468,10 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [3] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly bool $awaited ]
}
- Methods [4] {
@@ -5464,7 +5515,12 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [5] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly bool $awaited ]
+ Property [ public protected(set) readonly int $duration ]
+ Property [ public protected(set) readonly object $reply ]
}
- Methods [6] {
@@ -5522,7 +5578,10 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [3] {
+ Property [ public protected(set) readonly string $host ]
+ Property [ public protected(set) readonly int $port ]
+ Property [ public protected(set) readonly MongoDB\BSON\ObjectId $topologyId ]
}
- Methods [4] {
@@ -5566,7 +5625,10 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [3] {
+ Property [ public protected(set) readonly MongoDB\BSON\ObjectId $topologyId ]
+ Property [ public protected(set) readonly MongoDB\Driver\TopologyDescription $newDescription ]
+ Property [ public protected(set) readonly MongoDB\Driver\TopologyDescription $previousDescription ]
}
- Methods [4] {
@@ -5610,7 +5672,8 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [1] {
+ Property [ public protected(set) readonly MongoDB\BSON\ObjectId $topologyId ]
}
- Methods [2] {
@@ -5640,7 +5703,8 @@ Extension [ <persistent> extension #140 mongodb version 2.2.1 ] {
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [1] {
+ Property [ public protected(set) readonly MongoDB\BSON\ObjectId $topologyId ]
}
- Methods [2] {
diff --git a/makesrc.sh b/makesrc.sh
index 3f387cf..b7140d8 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -17,7 +17,7 @@ fi
echo "Cloning..."
rm -rf $PROJECT-$VERSION
-git clone --recursive https://github.com/$OWNER/$PROJECT.git -b $VERSION $PROJECT-$VERSION
+git clone --depth 1 --recursive https://github.com/$OWNER/$PROJECT.git -b $VERSION $PROJECT-$VERSION
echo "Composer..."
pushd $PROJECT-$VERSION
diff --git a/php-pecl-mongodb2.spec b/php-pecl-mongodb2.spec
index 9dcb0c8..a987cec 100644
--- a/php-pecl-mongodb2.spec
+++ b/php-pecl-mongodb2.spec
@@ -16,26 +16,26 @@
# After 40-smbclient.ini, see https://jira.mongodb.org/browse/PHPC-658
%global ini_name 50-%{pecl_name}.ini
-# use bundled libraries by default because of upcoming v2
+# use bundled libraries by default
%bcond_with syslib
# Bundled versions
-%global bundled_libmongo 2.2.2
-%global bundled_libcrypt 1.17.2
+%global bundled_libmongo 2.3.0
+%global bundled_libcrypt 1.17.3
# Required versions (in config.m4)
-%global minimal_libmongo 2.2.2
-%global minimal_libcrypt 1.17.2
+%global minimal_libmongo 2.3.0
+%global minimal_libcrypt 1.17.3
%if %{with syslib}
# Build dependencies (in repository)
-%global system_libmongo 2.2.2
-%global system_libcrypt 1.17.2
+%global system_libmongo 2.3.0
+%global system_libcrypt 1.17.3
# 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
-%global upstream_version 2.2.1
+%global upstream_version 2.3.0
#global upstream_prever beta1
#global upstream_lower ~beta1
%global sources %{gh_proj}-%{upstream_version}%{?upstream_prever}
@@ -49,7 +49,7 @@
Summary: MongoDB driver for PHP version 2
Name: %{?scl_prefix}php-pecl-%{pecl_name}2
-Release: 2%{?dist}
+Release: 1%{?dist}
%if %{with syslib}
License: Apache-2.0
%else
@@ -67,8 +67,8 @@ BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 8.1
BuildRequires: %{?scl_prefix}php-json
%if %{with syslib}
-BuildRequires: pkgconfig(libbson-1.0) >= %{system_libmongo}
-BuildRequires: pkgconfig(libmongoc-1.0) >= %{system_libmongo}
+BuildRequires: pkgconfig(bson2) >= %{system_libmongo}
+BuildRequires: pkgconfig(mongoc2) >= %{system_libmongo}
BuildRequires: pkgconfig(libmongocrypt) >= %{system_libcrypt}
Requires: libbson%{?_isa} >= %{runtime_libmongo}
Requires: mongo-c-driver-libs%{?_isa} >= %{runtime_libmongo}
@@ -136,7 +136,7 @@ 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
+grep 'PHP_MONGODB_MIN_.*_VERSION=' config.m4
grep -q %{minimal_libmongo} config.m4
grep -q %{minimal_libcrypt} config.m4
@@ -148,7 +148,7 @@ sed -e 's/%{minimal_libmongo}/%{system_libmongo}/;s/%{minimal_libcrypt}/%{system
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_MONGODB_VERSION /{s/.* "//;s/".*$//;p}' phongo_version.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
- : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}.
+ : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}
exit 1
fi
@@ -264,6 +264,11 @@ OPT="-n"
%changelog
+* Tue Apr 28 2026 Remi Collet <remi@remirepo.net> - 2.3.0-1
+- update to 2.3.0
+- use bundled libbson and libmongc 2.3.0
+- use bundled libmongocrypt 1.17.3
+
* Thu Mar 12 2026 Remi Collet <remi@remirepo.net> - 2.2.1-2
- drop pear/pecl dependency
- sources from github
@@ -274,7 +279,7 @@ OPT="-n"
* 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
+- use bundled libmongocrypt 1.17.2
* Thu Feb 5 2026 Remi Collet <remi@remirepo.net> - 2.1.8-1
- update to 2.1.8