diff options
-rw-r--r-- | PHPINFO | 6 | ||||
-rw-r--r-- | REFLECTION | 340 | ||||
-rw-r--r-- | php-pecl-mongodb2.spec | 24 |
3 files changed, 354 insertions, 16 deletions
@@ -2,10 +2,10 @@ mongodb MongoDB support => enabled -MongoDB extension version => 2.0.0 +MongoDB extension version => 2.1.0 MongoDB extension stability => stable -libbson bundled version => 1.30.3 -libmongoc bundled version => 1.30.3 +libbson bundled version => 1.30.4 +libmongoc bundled version => 1.30.4 libmongoc SSL => enabled libmongoc SSL library => OpenSSL libmongoc crypto => enabled @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { +Extension [ <persistent> extension #131 mongodb version 2.1.0 ] { - Dependencies { Dependency [ date (Required) ] @@ -14,7 +14,7 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { } - Constants [2] { - Constant [ string MONGODB_VERSION ] { 2.0.0 } + Constant [ string MONGODB_VERSION ] { 2.1.0 } Constant [ string MONGODB_STABILITY ] { stable } } @@ -44,7 +44,7 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { } } - - Classes [76] { + - Classes [79] { Interface [ <internal:mongodb> interface MongoDB\BSON\Type ] { - Constants [0] { @@ -1769,6 +1769,185 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { } } + Class [ <internal:mongodb> final class MongoDB\Driver\BulkWriteCommand implements Countable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [8] { + Method [ <internal:mongodb, ctor> final public method __construct ] { + + - Parameters [1] { + Parameter #0 [ <optional> ?array $options = null ] + } + } + + Method [ <internal:mongodb, prototype Countable> public method count ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ <internal:mongodb> final public method deleteOne ] { + + - Parameters [3] { + Parameter #0 [ <required> string $namespace ] + Parameter #1 [ <required> object|array $filter ] + Parameter #2 [ <optional> ?array $options = null ] + } + - Return [ void ] + } + + Method [ <internal:mongodb> final public method deleteMany ] { + + - Parameters [3] { + Parameter #0 [ <required> string $namespace ] + Parameter #1 [ <required> object|array $filter ] + Parameter #2 [ <optional> ?array $options = null ] + } + - Return [ void ] + } + + Method [ <internal:mongodb> final public method insertOne ] { + + - Parameters [2] { + Parameter #0 [ <required> string $namespace ] + Parameter #1 [ <required> object|array $document ] + } + - Return [ mixed ] + } + + Method [ <internal:mongodb> final public method replaceOne ] { + + - Parameters [4] { + Parameter #0 [ <required> string $namespace ] + Parameter #1 [ <required> object|array $filter ] + Parameter #2 [ <required> object|array $replacement ] + Parameter #3 [ <optional> ?array $options = null ] + } + - Return [ void ] + } + + Method [ <internal:mongodb> final public method updateOne ] { + + - Parameters [4] { + Parameter #0 [ <required> string $namespace ] + Parameter #1 [ <required> object|array $filter ] + Parameter #2 [ <required> object|array $update ] + Parameter #3 [ <optional> ?array $options = null ] + } + - Return [ void ] + } + + Method [ <internal:mongodb> final public method updateMany ] { + + - Parameters [4] { + Parameter #0 [ <required> string $namespace ] + Parameter #1 [ <required> object|array $filter ] + Parameter #2 [ <required> object|array $update ] + Parameter #3 [ <optional> ?array $options = null ] + } + - Return [ void ] + } + } + } + + Class [ <internal:mongodb> final class MongoDB\Driver\BulkWriteCommandResult ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [10] { + Method [ <internal:mongodb, ctor> final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ <internal:mongodb> final public method getInsertedCount ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ <internal:mongodb> final public method getMatchedCount ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ <internal:mongodb> final public method getModifiedCount ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ <internal:mongodb> final public method getUpsertedCount ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ <internal:mongodb> final public method getDeletedCount ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ <internal:mongodb> final public method getInsertResults ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\Document ] + } + + Method [ <internal:mongodb> final public method getUpdateResults ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\Document ] + } + + Method [ <internal:mongodb> final public method getDeleteResults ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\Document ] + } + + Method [ <internal:mongodb> final public method isAcknowledged ] { + + - Parameters [0] { + } + - Return [ bool ] + } + } + } + Class [ <internal:mongodb> final class MongoDB\Driver\ClientEncryption ] { - Constants [7] { @@ -2026,7 +2205,7 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { - Properties [0] { } - - Methods [17] { + - Methods [18] { Method [ <internal:mongodb, ctor> final public method __construct ] { - Parameters [3] { @@ -2062,6 +2241,15 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { - Return [ MongoDB\Driver\WriteResult ] } + Method [ <internal:mongodb> final public method executeBulkWriteCommand ] { + + - Parameters [2] { + Parameter #0 [ <required> MongoDB\Driver\BulkWriteCommand $bulkWriteCommand ] + Parameter #1 [ <optional> ?array $options = null ] + } + - Return [ MongoDB\Driver\BulkWriteCommandResult ] + } + Method [ <internal:mongodb> final public method executeCommand ] { - Parameters [3] { @@ -2384,7 +2572,7 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { - Properties [0] { } - - Methods [19] { + - Methods [20] { Method [ <internal:mongodb, ctor> final private method __construct ] { - Parameters [0] { @@ -2401,6 +2589,15 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { - Return [ MongoDB\Driver\WriteResult ] } + Method [ <internal:mongodb> final public method executeBulkWriteCommand ] { + + - Parameters [2] { + Parameter #0 [ <required> MongoDB\Driver\BulkWriteCommand $bulkWriteCommand ] + Parameter #1 [ <optional> ?array $options = null ] + } + - Return [ MongoDB\Driver\BulkWriteCommandResult ] + } + Method [ <internal:mongodb> final public method executeCommand ] { - Parameters [3] { @@ -3719,6 +3916,139 @@ Extension [ <persistent> extension #131 mongodb version 2.0.0 ] { } } + Class [ <internal:mongodb> final class MongoDB\Driver\Exception\BulkWriteCommandException extends MongoDB\Driver\Exception\ServerException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [9] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + Property [ private ?MongoDB\BSON\Document $errorReply = NULL ] + Property [ private ?MongoDB\Driver\BulkWriteCommandResult $partialResult = NULL ] + Property [ private array $writeErrors = [] ] + Property [ private array $writeConcernErrors = [] ] + } + + - Methods [15] { + Method [ <internal:mongodb> final public method getErrorReply ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\Document ] + } + + Method [ <internal:mongodb> final public method getPartialResult ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\Driver\BulkWriteCommandResult ] + } + + Method [ <internal:mongodb> final public method getWriteErrors ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ <internal:mongodb> final public method getWriteConcernErrors ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ <required> string $errorLabel ] + } + - Return [ bool ] + } + + Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { + + - Parameters [3] { + Parameter #0 [ <optional> string $message = "" ] + Parameter #1 [ <optional> int $code = 0 ] + Parameter #2 [ <optional> ?Throwable $previous = null ] + } + } + + Method [ <internal:Core, inherits Exception> public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + Class [ <internal:mongodb> class MongoDB\Driver\Exception\CommandException extends MongoDB\Driver\Exception\ServerException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { diff --git a/php-pecl-mongodb2.spec b/php-pecl-mongodb2.spec index 87d4eb0..7a605e4 100644 --- a/php-pecl-mongodb2.spec +++ b/php-pecl-mongodb2.spec @@ -20,10 +20,10 @@ %bcond_with syslib # Bundled versions -%global bundled_libmongo 1.30.3 +%global bundled_libmongo 1.30.4 %global bundled_libcrypt 1.12.0 # Required versions (in config.m4) -%global minimal_libmongo 1.30.3 +%global minimal_libmongo 1.30.4 %global minimal_libcrypt 1.12.0 %if %{with syslib} @@ -37,7 +37,7 @@ Summary: MongoDB driver for PHP version 2 Name: %{?scl_prefix}php-pecl-%{pecl_name}2 -%global upstream_version 2.0.0 +%global upstream_version 2.1.0 #global upstream_prever beta1 #global upstream_lower ~beta1 %global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} @@ -85,19 +85,21 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} 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-pie(%{pie_vend}/%{pie_proj}) = %{version} Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version} %if 0%{?fedora} >= 43 || 0%{?rhel} >= 11 || "%{php_version}" > "8.5" -Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 2 -Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} +Obsoletes: %{?scl_prefix}php-%{pecl_name} < 2 +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 2 +Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} %else # A single version can be installed -Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 2 +Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 2 %endif %description @@ -105,6 +107,9 @@ 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. +php-pecl-mongodb provides version 1 of the extension, +this package 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})}. @@ -256,6 +261,9 @@ OPT="-n" %changelog +* Mon May 26 2025 Remi Collet <remi@remirepo.net> - 2.1.0-1 +- update to 2.1.0 + * Thu Apr 10 2025 Remi Collet <remi@remirepo.net> - 2.0.0-1 - update to 2.0.0 - rename to php-pecl-mongodb2 for new API |