From 562cf6c1bbe02f1986d5d657aa45a7d70ca90460 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Apr 2025 10:06:42 +0200 Subject: resync --- PHPINFO | 18 +- REFLECTION | 4551 ++++++++++++++++++++++++++++++++++++------------ php-pecl-mongodb2.spec | 425 +++-- 3 files changed, 3795 insertions(+), 1199 deletions(-) diff --git a/PHPINFO b/PHPINFO index 3feefbc..06456a3 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,26 +2,28 @@ mongodb MongoDB support => enabled -MongoDB extension version => 1.7.5 +MongoDB extension version => 1.21.0 MongoDB extension stability => stable -libbson headers version => 1.16.2 -libbson library version => 1.17.0-pre -libmongoc headers version => 1.16.2 -libmongoc library version => 1.17.0-pre +libbson headers version => 1.30.1 +libbson library version => 1.30.1 +libmongoc headers version => 1.30.1 +libmongoc library version => 1.30.1 libmongoc SSL => enabled libmongoc SSL library => OpenSSL libmongoc crypto => enabled libmongoc crypto library => libcrypto libmongoc crypto system profile => enabled libmongoc SASL => enabled -libmongoc ICU => enabled +libmongoc SRV => enabled libmongoc compression => enabled libmongoc compression snappy => enabled libmongoc compression zlib => enabled -libmongocrypt headers version => 1.0.4 -libmongocrypt library version => 1.0.4 +libmongoc compression zstd => enabled +libmongocrypt headers version => 1.13.0 +libmongocrypt library version => 1.13.0 libmongocrypt crypto => enabled libmongocrypt crypto library => libcrypto +crypt_shared library version => unknown Directive => Local Value => Master Value mongodb.debug => no value => no value diff --git a/REFLECTION b/REFLECTION index 1c3facd..d604cf4 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #70 mongodb version 1.7.5 ] { +Extension [ extension #128 mongodb version 1.21.0 ] { - Dependencies { Dependency [ date (Required) ] @@ -14,63 +14,80 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Constants [2] { - Constant [ string MONGODB_VERSION ] { 1.7.5 } + Constant [ string MONGODB_VERSION ] { 1.21.0 } Constant [ string MONGODB_STABILITY ] { stable } } - Functions { - Function [ function MongoDB\BSON\fromPHP ] { + Function [ function MongoDB\BSON\fromJSON ] { - Parameters [1] { - Parameter #0 [ $value ] + Parameter #0 [ string $json ] } + - Return [ string ] } - Function [ function MongoDB\BSON\toPHP ] { + Function [ function MongoDB\BSON\fromPHP ] { - - Parameters [2] { - Parameter #0 [ $bson ] - Parameter #1 [ array $typemap ] + - Parameters [1] { + Parameter #0 [ object|array $value ] } + - Return [ string ] } - Function [ function MongoDB\BSON\toJSON ] { + Function [ function MongoDB\BSON\toCanonicalExtendedJSON ] { - Parameters [1] { - Parameter #0 [ $bson ] + Parameter #0 [ string $bson ] } + - Return [ string ] } - Function [ function MongoDB\BSON\toCanonicalExtendedJSON ] { + Function [ function MongoDB\BSON\toJSON ] { - Parameters [1] { - Parameter #0 [ $bson ] + Parameter #0 [ string $bson ] } + - Return [ string ] } - Function [ function MongoDB\BSON\toRelaxedExtendedJSON ] { + Function [ function MongoDB\BSON\toPHP ] { - - Parameters [1] { - Parameter #0 [ $bson ] + - Parameters [2] { + Parameter #0 [ string $bson ] + Parameter #1 [ ?array $typemap = null ] } + - Return [ object|array ] } - Function [ function MongoDB\BSON\fromJSON ] { + Function [ function MongoDB\BSON\toRelaxedExtendedJSON ] { - Parameters [1] { - Parameter #0 [ $json ] + Parameter #0 [ string $bson ] } + - Return [ string ] } Function [ function MongoDB\Driver\Monitoring\addSubscriber ] { - Parameters [1] { Parameter #0 [ MongoDB\Driver\Monitoring\Subscriber $subscriber ] } + - Return [ void ] + } + Function [ function MongoDB\Driver\Monitoring\mongoc_log ] { + + - Parameters [3] { + Parameter #0 [ int $level ] + Parameter #1 [ string $domain ] + Parameter #2 [ string $message ] + } + - Return [ void ] } Function [ function MongoDB\Driver\Monitoring\removeSubscriber ] { - Parameters [1] { Parameter #0 [ MongoDB\Driver\Monitoring\Subscriber $subscriber ] } + - Return [ void ] } } - - Classes [62] { + - Classes [79] { Interface [ interface MongoDB\BSON\Type ] { - Constants [0] { @@ -108,6 +125,7 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Parameters [0] { } + - Tentative return [ stdClass|MongoDB\BSON\Document|MongoDB\BSON\PackedArray|array ] } } } @@ -132,11 +150,12 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Parameters [1] { Parameter #0 [ array $data ] } + - Tentative return [ void ] } } } - Interface [ interface MongoDB\BSON\BinaryInterface ] { + Interface [ interface MongoDB\BSON\BinaryInterface extends Stringable ] { - Constants [0] { } @@ -155,23 +174,26 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Parameters [0] { } + - Tentative return [ string ] } Method [ abstract public method getType ] { - Parameters [0] { } + - Tentative return [ int ] } Method [ abstract public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Interface [ interface MongoDB\BSON\Decimal128Interface ] { + Interface [ interface MongoDB\BSON\Decimal128Interface extends Stringable ] { - Constants [0] { } @@ -190,11 +212,12 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Parameters [0] { } + - Tentative return [ string ] } } } - Interface [ interface MongoDB\BSON\JavascriptInterface ] { + Interface [ interface MongoDB\BSON\JavascriptInterface extends Stringable ] { - Constants [0] { } @@ -213,18 +236,21 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Parameters [0] { } + - Tentative return [ string ] } Method [ abstract public method getScope ] { - Parameters [0] { } + - Tentative return [ ?object ] } Method [ abstract public method __toString ] { - Parameters [0] { } + - Tentative return [ string ] } } } @@ -265,7 +291,7 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } } - Interface [ interface MongoDB\BSON\ObjectIdInterface ] { + Interface [ interface MongoDB\BSON\ObjectIdInterface extends Stringable ] { - Constants [0] { } @@ -284,17 +310,19 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Parameters [0] { } + - Tentative return [ int ] } Method [ abstract public method __toString ] { - Parameters [0] { } + - Tentative return [ string ] } } } - Interface [ interface MongoDB\BSON\RegexInterface ] { + Interface [ interface MongoDB\BSON\RegexInterface extends Stringable ] { - Constants [0] { } @@ -309,27 +337,30 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Methods [3] { - Method [ abstract public method getFlags ] { + Method [ abstract public method getPattern ] { - Parameters [0] { } + - Tentative return [ string ] } - Method [ abstract public method getPattern ] { + Method [ abstract public method getFlags ] { - Parameters [0] { } + - Tentative return [ string ] } Method [ abstract public method __toString ] { - Parameters [0] { } + - Tentative return [ string ] } } } - Interface [ interface MongoDB\BSON\TimestampInterface ] { + Interface [ interface MongoDB\BSON\TimestampInterface extends Stringable ] { - Constants [0] { } @@ -344,27 +375,30 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Methods [3] { - Method [ abstract public method getIncrement ] { + Method [ abstract public method getTimestamp ] { - Parameters [0] { } + - Tentative return [ int ] } - Method [ abstract public method getTimestamp ] { + Method [ abstract public method getIncrement ] { - Parameters [0] { } + - Tentative return [ int ] } Method [ abstract public method __toString ] { - Parameters [0] { } + - Tentative return [ string ] } } } - Interface [ interface MongoDB\BSON\UTCDateTimeInterface ] { + Interface [ interface MongoDB\BSON\UTCDateTimeInterface extends Stringable ] { - Constants [0] { } @@ -383,93 +417,77 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Parameters [0] { } + - Tentative return [ DateTime ] } Method [ abstract public method __toString ] { - Parameters [0] { } + - Tentative return [ string ] } } } - Class [ final class MongoDB\BSON\Binary implements MongoDB\BSON\BinaryInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Iterator implements Iterator, Traversable ] { - - Constants [8] { - Constant [ public int TYPE_GENERIC ] { 0 } - Constant [ public int TYPE_FUNCTION ] { 1 } - Constant [ public int TYPE_OLD_BINARY ] { 2 } - Constant [ public int TYPE_OLD_UUID ] { 3 } - Constant [ public int TYPE_UUID ] { 4 } - Constant [ public int TYPE_MD5 ] { 5 } - Constant [ public int TYPE_ENCRYPTED ] { 6 } - Constant [ public int TYPE_USER_DEFINED ] { 128 } + - Constants [0] { } - Static properties [0] { } - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } + - Static methods [0] { } - Properties [0] { } - - Methods [7] { - Method [ final public method __construct ] { - - - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $type ] - } - } - - Method [ final public method __toString ] { + - Methods [6] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method jsonSerialize ] { + Method [ final public method current ] { - Parameters [0] { } + - Return [ mixed ] } - Method [ final public method serialize ] { + Method [ final public method key ] { - Parameters [0] { } + - Return [ string|int ] } - Method [ final public method unserialize ] { + Method [ final public method next ] { - - Parameters [1] { - Parameter #0 [ $serialized ] + - Parameters [0] { } + - Return [ void ] } - Method [ final public method getData ] { + Method [ final public method rewind ] { - Parameters [0] { } + - Return [ void ] } - Method [ final public method getType ] { + Method [ final public method valid ] { - Parameters [0] { } + - Return [ bool ] } } } - Class [ final class MongoDB\BSON\DBPointer implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\PackedArray implements Stringable, IteratorAggregate, Traversable, Serializable, ArrayAccess, MongoDB\BSON\Type ] { - Constants [0] { } @@ -477,150 +495,160 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { - } + - Static methods [3] { + Method [ final static public method fromJSON ] { - - Properties [0] { - } + - Parameters [1] { + Parameter #0 [ string $json ] + } + - Return [ MongoDB\BSON\PackedArray ] + } - - Methods [5] { - Method [ final public method __toString ] { + Method [ final static public method fromPHP ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $value ] } + - Return [ MongoDB\BSON\PackedArray ] } - Method [ final public method jsonSerialize ] { + Method [ final static public method __set_state ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\PackedArray ] } + } - Method [ final public method serialize ] { + - Properties [0] { + } + + - Methods [16] { + Method [ private method __construct ] { - Parameters [0] { } } - Method [ final public method unserialize ] { + Method [ final public method get ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ int $index ] } + - Return [ mixed ] } - Method [ final private method __construct ] { + Method [ final public method getIterator ] { - Parameters [0] { } + - Return [ MongoDB\BSON\Iterator ] } - } - } - - Class [ final class MongoDB\BSON\Decimal128 implements MongoDB\BSON\Decimal128Interface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final public method has ] { - Parameters [1] { - Parameter #0 [ array $properties ] + Parameter #0 [ int $index ] } + - Return [ bool ] } - } - - - Properties [0] { - } - - Methods [5] { - Method [ final public method __construct ] { + Method [ final public method toPHP ] { - Parameters [1] { - Parameter #0 [ $value ] + Parameter #0 [ ?array $typeMap = null ] } + - Return [ object|array ] } - Method [ final public method __toString ] { + Method [ final public method toCanonicalExtendedJSON ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method jsonSerialize ] { + Method [ final public method toRelaxedExtendedJSON ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method serialize ] { + Method [ public method offsetExists ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ mixed $offset ] } + - Return [ bool ] } - Method [ final public method unserialize ] { + Method [ public method offsetGet ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ mixed $offset ] } + - Return [ mixed ] } - } - } - - Class [ final class MongoDB\BSON\Int64 implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - Static methods [0] { - } + Method [ public method offsetSet ] { - - Properties [0] { - } + - Parameters [2] { + Parameter #0 [ mixed $offset ] + Parameter #1 [ mixed $value ] + } + - Return [ void ] + } - - Methods [5] { - Method [ final public method __toString ] { + Method [ public method offsetUnset ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ mixed $offset ] } + - Return [ void ] } - Method [ final public method jsonSerialize ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final private method __construct ] { + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { - Parameters [0] { } + - Return [ array ] } } } - Class [ final class MongoDB\BSON\Javascript implements MongoDB\BSON\JavascriptInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Document implements Stringable, IteratorAggregate, Traversable, Serializable, ArrayAccess, MongoDB\BSON\Type ] { - Constants [0] { } @@ -628,242 +656,268 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [1] { - Method [ static public method __set_state ] { + - Static methods [4] { + Method [ final static public method fromBSON ] { - Parameters [1] { - Parameter #0 [ array $properties ] + Parameter #0 [ string $bson ] } + - Return [ MongoDB\BSON\Document ] } - } - - - Properties [0] { - } - - Methods [7] { - Method [ final public method __construct ] { + Method [ final static public method fromJSON ] { - - Parameters [2] { - Parameter #0 [ $javascript ] - Parameter #1 [ $scope ] + - Parameters [1] { + Parameter #0 [ string $json ] } + - Return [ MongoDB\BSON\Document ] } - Method [ final public method __toString ] { + Method [ final static public method fromPHP ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ object|array $value ] } + - Return [ MongoDB\BSON\Document ] } - Method [ final public method jsonSerialize ] { + Method [ final static public method __set_state ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\Document ] } + } - Method [ final public method serialize ] { + - Properties [0] { + } + + - Methods [16] { + Method [ private method __construct ] { - Parameters [0] { } } - Method [ final public method unserialize ] { + Method [ final public method get ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $key ] } + - Return [ mixed ] } - Method [ final public method getCode ] { + Method [ final public method getIterator ] { - Parameters [0] { } + - Return [ MongoDB\BSON\Iterator ] } - Method [ final public method getScope ] { + Method [ final public method has ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $key ] } + - Return [ bool ] } - } - } - - Class [ final class MongoDB\BSON\MaxKey implements MongoDB\BSON\MaxKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final public method toPHP ] { - Parameters [1] { - Parameter #0 [ array $properties ] + Parameter #0 [ ?array $typeMap = null ] } + - Return [ object|array ] } - } - - - Properties [0] { - } - - Methods [3] { - Method [ final public method jsonSerialize ] { + Method [ final public method toCanonicalExtendedJSON ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method serialize ] { + Method [ final public method toRelaxedExtendedJSON ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method unserialize ] { + Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ mixed $offset ] } + - Return [ bool ] } - } - } - Class [ final class MongoDB\BSON\MinKey implements MongoDB\BSON\MinKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Method [ public method offsetGet ] { - - Constants [0] { - } + - Parameters [1] { + Parameter #0 [ mixed $offset ] + } + - Return [ mixed ] + } - - Static properties [0] { - } + Method [ public method offsetSet ] { - - Static methods [1] { - Method [ static public method __set_state ] { + - Parameters [2] { + Parameter #0 [ mixed $offset ] + Parameter #1 [ mixed $value ] + } + - Return [ void ] + } + + Method [ public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ array $properties ] + Parameter #0 [ mixed $offset ] } + - Return [ void ] } - } - - - Properties [0] { - } - - Methods [3] { - Method [ final public method jsonSerialize ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] + } + - Return [ void ] + } + + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { } + - Return [ array ] } } } - Class [ final class MongoDB\BSON\ObjectId implements MongoDB\BSON\ObjectIdInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Binary implements Stringable, MongoDB\BSON\BinaryInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Constants [0] { + - Constants [10] { + Constant [ public int TYPE_GENERIC ] { 0 } + Constant [ public int TYPE_FUNCTION ] { 1 } + Constant [ public int TYPE_OLD_BINARY ] { 2 } + Constant [ public int TYPE_OLD_UUID ] { 3 } + Constant [ public int TYPE_UUID ] { 4 } + Constant [ public int TYPE_MD5 ] { 5 } + Constant [ public int TYPE_ENCRYPTED ] { 6 } + Constant [ public int TYPE_COLUMN ] { 7 } + Constant [ public int TYPE_SENSITIVE ] { 8 } + Constant [ public int TYPE_USER_DEFINED ] { 128 } } - Static properties [0] { } - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final static public method __set_state ] { - Parameters [1] { Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\Binary ] } } - Properties [0] { } - - Methods [6] { + - Methods [9] { Method [ final public method __construct ] { - - Parameters [1] { - Parameter #0 [ $id ] + - Parameters [2] { + Parameter #0 [ string $data ] + Parameter #1 [ int $type = MongoDB\BSON\Binary::TYPE_GENERIC ] } } - Method [ final public method getTimestamp ] { + Method [ final public method getData ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method __toString ] { + Method [ final public method getType ] { - Parameters [0] { } + - Return [ int ] } - Method [ final public method jsonSerialize ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] } + - Return [ void ] } - } - } - - Interface [ interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - - Constants [0] { - } - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [2] { - Method [ abstract public method bsonUnserialize ] { + Method [ final public method __unserialize ] { - Parameters [1] { Parameter #0 [ array $data ] } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] } - Method [ abstract public method bsonSerialize ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\BSON\Regex implements MongoDB\BSON\RegexInterface, MongoDB\BSON\Type, Serializable, JsonSerializable ] { + Class [ final class MongoDB\BSON\DBPointer implements Stringable, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -872,11 +926,12 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final static public method __set_state ] { - Parameters [1] { Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\DBPointer ] } } @@ -884,54 +939,59 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Methods [7] { - Method [ final public method __construct ] { - - - Parameters [2] { - Parameter #0 [ $pattern ] - Parameter #1 [ $flags ] - } - } - - Method [ final public method __toString ] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method jsonSerialize ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final public method getPattern ] { + Method [ final public method __unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ final public method getFlags ] { + Method [ final public method __serialize ] { - Parameters [0] { } + - Return [ array ] } - } + + Method [ final public method jsonSerialize ] { + + - Parameters [0] { + } + - Return [ mixed ] + } + } } - Class [ final class MongoDB\BSON\Symbol implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Decimal128 implements Stringable, MongoDB\BSON\Decimal128Interface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -939,47 +999,74 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\BSON\Decimal128 ] + } } - Properties [0] { } - - Methods [5] { - Method [ final public method __toString ] { + - Methods [7] { + Method [ final public method __construct ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $value ] } } - Method [ final public method jsonSerialize ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final private method __construct ] { + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\BSON\Timestamp implements MongoDB\BSON\TimestampInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Int64 implements Stringable, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -988,11 +1075,12 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final static public method __set_state ] { - Parameters [1] { Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\Int64 ] } } @@ -1002,52 +1090,58 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Methods [7] { Method [ final public method __construct ] { - - Parameters [2] { - Parameter #0 [ $increment ] - Parameter #1 [ $timestamp ] + - Parameters [1] { + Parameter #0 [ string|int $value ] } } - Method [ final public method __toString ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method jsonSerialize ] { + Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method serialize ] { + Method [ final public method unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final public method unserialize ] { + Method [ final public method __unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ final public method getIncrement ] { + Method [ final public method __serialize ] { - Parameters [0] { } + - Return [ array ] } - Method [ final public method getTimestamp ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\BSON\Undefined implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Javascript implements Stringable, MongoDB\BSON\JavascriptInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -1055,47 +1149,89 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\BSON\Javascript ] + } } - Properties [0] { } - - Methods [5] { - Method [ final public method __toString ] { + - Methods [9] { + Method [ final public method __construct ] { + + - Parameters [2] { + Parameter #0 [ string $code ] + Parameter #1 [ object|array|null $scope = null ] + } + } + + Method [ final public method getCode ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method jsonSerialize ] { + Method [ final public method getScope ] { + + - Parameters [0] { + } + - Return [ ?object ] + } + + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final private method __construct ] { + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\BSON\UTCDateTime implements MongoDB\BSON\UTCDateTimeInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\MaxKey implements MongoDB\BSON\MaxKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -1104,59 +1240,59 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final static public method __set_state ] { - Parameters [1] { Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\MaxKey ] } } - Properties [0] { } - - Methods [6] { - Method [ final public method __construct ] { - - - Parameters [1] { - Parameter #0 [ $milliseconds ] - } - } - - Method [ final public method __toString ] { + - Methods [5] { + Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method jsonSerialize ] { + Method [ final public method unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final public method serialize ] { + Method [ final public method __unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ final public method unserialize ] { + Method [ final public method __serialize ] { - - Parameters [1] { - Parameter #0 [ $serialized ] + - Parameters [0] { } + - Return [ array ] } - Method [ final public method toDateTime ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Interface [ interface MongoDB\Driver\CursorInterface extends Traversable ] { + Class [ final class MongoDB\BSON\MinKey implements MongoDB\BSON\MinKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -1164,47 +1300,60 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\BSON\MinKey ] + } } - Properties [0] { } - Methods [5] { - Method [ abstract public method getId ] { + Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } - Method [ abstract public method getServer ] { + Method [ final public method unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ abstract public method isDead ] { + Method [ final public method __unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ abstract public method setTypeMap ] { + Method [ final public method __serialize ] { - - Parameters [1] { - Parameter #0 [ array $typemap ] + - Parameters [0] { } + - Return [ array ] } - Method [ abstract public method toArray ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\Driver\BulkWrite implements Countable ] { + Class [ final class MongoDB\BSON\ObjectId implements Stringable, MongoDB\BSON\ObjectIdInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -1212,113 +1361,81 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\BSON\ObjectId ] + } } - Properties [0] { } - - Methods [6] { + - Methods [8] { Method [ final public method __construct ] { - Parameters [1] { - Parameter #0 [ array or NULL $options ] - } - } - - Method [ final public method insert ] { - - - Parameters [1] { - Parameter #0 [ $document ] - } - } - - Method [ final public method update ] { - - - Parameters [3] { - Parameter #0 [ $query ] - Parameter #1 [ $newObj ] - Parameter #2 [ array or NULL $updateOptions ] - } - } - - Method [ final public method delete ] { - - - Parameters [2] { - Parameter #0 [ $query ] - Parameter #1 [ array or NULL $deleteOptions ] + Parameter #0 [ ?string $id = null ] } } - Method [ final public method count ] { + Method [ final public method getTimestamp ] { - Parameters [0] { } + - Return [ int ] } - Method [ final public method __wakeup ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } - } - } - - Class [ final class MongoDB\Driver\ClientEncryption ] { - - - Constants [2] { - 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 } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - Properties [0] { - } - - - Methods [5] { - Method [ final public method createDataKey ] { + Method [ final public method serialize ] { - - Parameters [2] { - Parameter #0 [ $kmsProvider ] - Parameter #1 [ array or NULL $options ] + - Parameters [0] { } + - Return [ string ] } - Method [ final public method encrypt ] { + Method [ final public method unserialize ] { - - Parameters [2] { - Parameter #0 [ $value ] - Parameter #1 [ array or NULL $options ] + - Parameters [1] { + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final public method decrypt ] { + Method [ final public method __unserialize ] { - Parameters [1] { - Parameter #0 [ MongoDB\BSON\BinaryInterface $keyVaultClient ] + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ final private method __construct ] { + Method [ final public method __serialize ] { - Parameters [0] { } + - Return [ array ] } - Method [ final public method __wakeup ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\Driver\Command ] { + Interface [ interface MongoDB\BSON\Persistable extends MongoDB\BSON\Serializable, MongoDB\BSON\Type, MongoDB\BSON\Unserializable ] { - Constants [0] { } @@ -1333,22 +1450,24 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Methods [2] { - Method [ final public method __construct ] { + Method [ abstract public method bsonSerialize ] { - - Parameters [1] { - Parameter #0 [ $document ] + - Parameters [0] { } + - Tentative return [ stdClass|MongoDB\BSON\Document|array ] } - Method [ final public method __wakeup ] { + Method [ abstract public method bsonUnserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $data ] } + - Tentative return [ void ] } } } - Class [ final class MongoDB\Driver\Cursor implements MongoDB\Driver\CursorInterface, Traversable ] { + Class [ final class MongoDB\BSON\Regex implements Stringable, MongoDB\BSON\RegexInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -1356,59 +1475,89 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\BSON\Regex ] + } } - Properties [0] { } - - Methods [7] { - Method [ final public method setTypeMap ] { + - Methods [9] { + Method [ final public method __construct ] { - - Parameters [1] { - Parameter #0 [ array $typemap ] + - Parameters [2] { + Parameter #0 [ string $pattern ] + Parameter #1 [ string $flags = '' ] } } - Method [ final public method toArray ] { + Method [ final public method getPattern ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method getId ] { + Method [ final public method getFlags ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method getServer ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method isDead ] { + Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } - Method [ final private method __construct ] { + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ string $data ] + } + - Return [ void ] + } + + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { - Parameters [0] { } + - Return [ array ] } - Method [ final public method __wakeup ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\Driver\CursorId implements Serializable ] { + Class [ final class MongoDB\BSON\Symbol implements Stringable, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -1416,47 +1565,73 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\BSON\Symbol ] + } } - Properties [0] { } - - Methods [5] { - Method [ final public method __toString ] { + - Methods [7] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final private method __construct ] { + Method [ final public method __unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ final public method __wakeup ] { + Method [ final public method __serialize ] { - Parameters [0] { } + - Return [ array ] + } + + Method [ final public method jsonSerialize ] { + + - Parameters [0] { + } + - Return [ mixed ] } } } - Class [ final class MongoDB\Driver\Manager ] { + Class [ final class MongoDB\BSON\Timestamp implements Stringable, MongoDB\BSON\TimestampInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -1464,324 +1639,374 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\BSON\Timestamp ] + } } - Properties [0] { } - - Methods [15] { + - Methods [9] { Method [ final public method __construct ] { - - Parameters [3] { - Parameter #0 [ $uri ] - Parameter #1 [ array $options ] - Parameter #2 [ array $driverOptions ] + - Parameters [2] { + Parameter #0 [ string|int $increment ] + Parameter #1 [ string|int $timestamp ] } } - Method [ final public method createClientEncryption ] { + Method [ final public method getTimestamp ] { - - Parameters [1] { - Parameter #0 [ array $options ] + - Parameters [0] { } + - Return [ int ] } - Method [ final public method executeCommand ] { + Method [ final public method getIncrement ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ $options ] + - Parameters [0] { } + - Return [ int ] } - Method [ final public method executeReadCommand ] { + Method [ final public method __toString ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ array $options ] + - Parameters [0] { } + - Return [ string ] } - Method [ final public method executeWriteCommand ] { + Method [ final public method serialize ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ array $options ] + - Parameters [0] { } + - Return [ string ] } - Method [ final public method executeReadWriteCommand ] { + Method [ final public method unserialize ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ $options ] + - Parameters [1] { + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final public method executeQuery ] { + Method [ final public method __unserialize ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\Query $zquery ] - Parameter #2 [ $options ] + - Parameters [1] { + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ final public method executeBulkWrite ] { + Method [ final public method __serialize ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] - Parameter #2 [ $options ] + - Parameters [0] { } + - Return [ array ] } - Method [ final public method getReadConcern ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } + } + } - Method [ final public method getReadPreference ] { + Class [ final class MongoDB\BSON\Undefined implements Stringable, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Parameters [0] { + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\Undefined ] } + } - Method [ final public method getServers ] { + - Properties [0] { + } + + - Methods [7] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getWriteConcern ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method selectServer ] { + Method [ final public method serialize ] { - - Parameters [1] { - Parameter #0 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + - Parameters [0] { } + - Return [ string ] } - Method [ final public method startSession ] { + Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ array or NULL $options ] + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final public method __wakeup ] { + Method [ final public method __unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $data ] } + - Return [ void ] } - } - } - - Class [ final class MongoDB\Driver\Query ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - Properties [0] { - } - - - Methods [2] { - Method [ final public method __construct ] { + Method [ final public method __serialize ] { - - Parameters [2] { - Parameter #0 [ $filter ] - Parameter #1 [ array or NULL $options ] + - Parameters [0] { } + - Return [ array ] } - Method [ final public method __wakeup ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } + - Return [ mixed ] } } } - Class [ final class MongoDB\Driver\ReadConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\UTCDateTime implements Stringable, MongoDB\BSON\UTCDateTimeInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Constants [4] { - Constant [ public string LOCAL ] { local } - Constant [ public string MAJORITY ] { majority } - Constant [ public string LINEARIZABLE ] { linearizable } - Constant [ public string AVAILABLE ] { available } + - Constants [0] { } - Static properties [0] { } - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final static public method __set_state ] { - Parameters [1] { Parameter #0 [ array $properties ] } + - Return [ MongoDB\BSON\UTCDateTime ] } } - Properties [0] { } - - Methods [6] { + - Methods [9] { Method [ final public method __construct ] { - Parameters [1] { - Parameter #0 [ $level ] + Parameter #0 [ DateTimeInterface|MongoDB\BSON\Int64|string|int|float|null $milliseconds = null ] } } - Method [ final public method getLevel ] { + Method [ final public method toDateTime ] { - Parameters [0] { } + - Return [ DateTime ] } - Method [ final public method isDefault ] { + Method [ final public method toDateTimeImmutable ] { - Parameters [0] { } + - Return [ DateTimeImmutable ] } - Method [ final public method bsonSerialize ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ string $data ] + } + - Return [ void ] + } + + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { } + - Return [ array ] + } + + Method [ final public method jsonSerialize ] { + + - Parameters [0] { + } + - Return [ mixed ] } } } - Class [ final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable, MongoDB\BSON\Type, Serializable ] { + Interface [ interface MongoDB\Driver\CursorInterface extends Traversable ] { - - Constants [12] { - Constant [ public int RP_PRIMARY ] { 1 } - Constant [ public int RP_PRIMARY_PREFERRED ] { 5 } - Constant [ public int RP_SECONDARY ] { 2 } - Constant [ public int RP_SECONDARY_PREFERRED ] { 6 } - Constant [ public int RP_NEAREST ] { 10 } - Constant [ public int NO_MAX_STALENESS ] { -1 } - Constant [ public int SMALLEST_MAX_STALENESS_SECONDS ] { 90 } - Constant [ public string PRIMARY ] { primary } - Constant [ public string PRIMARY_PREFERRED ] { primaryPreferred } - Constant [ public string SECONDARY ] { secondary } - Constant [ public string SECONDARY_PREFERRED ] { secondaryPreferred } - Constant [ public string NEAREST ] { nearest } + - Constants [0] { } - Static properties [0] { } - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } + - Static methods [0] { } - Properties [0] { } - - Methods [8] { - Method [ final public method __construct ] { + - Methods [5] { + Method [ abstract public method getId ] { - - Parameters [3] { - Parameter #0 [ $mode ] - Parameter #1 [ array or NULL $tagSets ] - Parameter #2 [ array or NULL $options ] + - Parameters [0] { } + - Tentative return [ MongoDB\Driver\CursorId|MongoDB\BSON\Int64 ] } - Method [ final public method getMaxStalenessSeconds ] { + Method [ abstract public method getServer ] { - Parameters [0] { } + - Tentative return [ MongoDB\Driver\Server ] } - Method [ final public method getMode ] { + Method [ abstract public method isDead ] { - Parameters [0] { } + - Tentative return [ bool ] } - Method [ final public method getModeString ] { + Method [ abstract public method setTypeMap ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $typemap ] } + - Tentative return [ void ] } - Method [ final public method getTagSets ] { + Method [ abstract public method toArray ] { - Parameters [0] { } + - Tentative return [ array ] } + } + } - Method [ final public method bsonSerialize ] { + Class [ final class MongoDB\Driver\BulkWrite implements Countable ] { - - Parameters [0] { + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ final public method __construct ] { + + - Parameters [1] { + Parameter #0 [ ?array $options = null ] } } - Method [ final public method serialize ] { + Method [ public method count ] { - Parameters [0] { } + - Return [ int ] } - Method [ final public method unserialize ] { + Method [ public method delete ] { + + - Parameters [2] { + Parameter #0 [ object|array $filter ] + Parameter #1 [ ?array $deleteOptions = null ] + } + - Return [ void ] + } + + Method [ final public method insert ] { - Parameters [1] { - Parameter #0 [ $serialized ] + Parameter #0 [ object|array $document ] + } + - Return [ mixed ] + } + + Method [ public method update ] { + + - Parameters [3] { + Parameter #0 [ object|array $filter ] + Parameter #1 [ object|array $newObj ] + Parameter #2 [ ?array $updateOptions = null ] } + - Return [ void ] } } } - Class [ final class MongoDB\Driver\Server ] { + Class [ final class MongoDB\Driver\ClientEncryption ] { - Constants [9] { - Constant [ public int TYPE_UNKNOWN ] { 0 } - Constant [ public int TYPE_STANDALONE ] { 1 } - Constant [ public int TYPE_MONGOS ] { 2 } - Constant [ public int TYPE_POSSIBLE_PRIMARY ] { 3 } - Constant [ public int TYPE_RS_PRIMARY ] { 4 } - Constant [ public int TYPE_RS_SECONDARY ] { 5 } - Constant [ public int TYPE_RS_ARBITER ] { 6 } - Constant [ public int TYPE_RS_OTHER ] { 7 } - Constant [ public int TYPE_RS_GHOST ] { 8 } + 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 } } - Static properties [0] { @@ -1793,149 +2018,112 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [19] { - Method [ final public method executeCommand ] { + - Methods [12] { + Method [ final public method __construct ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ $options ] + - Parameters [1] { + Parameter #0 [ array $options ] } } - Method [ final public method executeReadCommand ] { + Method [ final public method addKeyAltName ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ array $options ] + - Parameters [2] { + Parameter #0 [ MongoDB\BSON\Binary $keyId ] + Parameter #1 [ string $keyAltName ] } + - Return [ ?object ] } - Method [ final public method executeWriteCommand ] { + Method [ final public method createDataKey ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ array $options ] + - Parameters [2] { + Parameter #0 [ string $kmsProvider ] + Parameter #1 [ ?array $options = null ] } + - Return [ MongoDB\BSON\Binary ] } - Method [ final public method executeReadWriteCommand ] { + Method [ final public method decrypt ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ array $options ] + - Parameters [1] { + Parameter #0 [ MongoDB\BSON\Binary $value ] } + - Return [ mixed ] } - Method [ final public method executeQuery ] { + Method [ final public method deleteKey ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\Query $zquery ] - Parameter #2 [ $options ] + - Parameters [1] { + Parameter #0 [ MongoDB\BSON\Binary $keyId ] } + - Return [ object ] } - Method [ final public method executeBulkWrite ] { + Method [ final public method encrypt ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] - Parameter #2 [ $options ] + - Parameters [2] { + Parameter #0 [ mixed $value ] + Parameter #1 [ ?array $options = null ] } + - Return [ MongoDB\BSON\Binary ] } - Method [ final public method getHost ] { + Method [ final public method encryptExpression ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ object|array $expr ] + Parameter #1 [ ?array $options = null ] } + - Return [ object ] } - Method [ final public method getTags ] { + Method [ final public method getKey ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ MongoDB\BSON\Binary $keyId ] } + - Return [ ?object ] } - Method [ final public method getInfo ] { + Method [ final public method getKeyByAltName ] { - - Parameters [0] { - } - } - - Method [ final public method getLatency ] { - - - Parameters [0] { - } - } - - Method [ final public method getPort ] { - - - Parameters [0] { - } - } - - Method [ final public method getType ] { - - - Parameters [0] { - } - } - - Method [ final public method isPrimary ] { - - - Parameters [0] { - } - } - - Method [ final public method isSecondary ] { - - - Parameters [0] { - } - } - - Method [ final public method isArbiter ] { - - - Parameters [0] { - } - } - - Method [ final public method isHidden ] { - - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $keyAltName ] } + - Return [ ?object ] } - Method [ final public method isPassive ] { + Method [ final public method getKeys ] { - Parameters [0] { } + - Return [ MongoDB\Driver\Cursor ] } - Method [ final private method __construct ] { + Method [ final public method removeKeyAltName ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ MongoDB\BSON\Binary $keyId ] + Parameter #1 [ string $keyAltName ] } + - Return [ ?object ] } - Method [ final public method __wakeup ] { + Method [ final public method rewrapManyDataKey ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ object|array $filter ] + Parameter #1 [ ?array $options = null ] } + - Return [ object ] } } } - Class [ final class MongoDB\Driver\Session ] { + Class [ final class MongoDB\Driver\Command ] { - - Constants [5] { - Constant [ public string TRANSACTION_NONE ] { none } - Constant [ public string TRANSACTION_STARTING ] { starting } - Constant [ public string TRANSACTION_IN_PROGRESS ] { in_progress } - Constant [ public string TRANSACTION_COMMITTED ] { committed } - Constant [ public string TRANSACTION_ABORTED ] { aborted } + - Constants [0] { } - Static properties [0] { @@ -1947,179 +2135,180 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [15] { - Method [ final public method abortTransaction ] { + - Methods [1] { + Method [ final public method __construct ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ object|array $document ] + Parameter #1 [ ?array $commandOptions = null ] } } + } + } - Method [ final public method advanceClusterTime ] { - - - Parameters [1] { - Parameter #0 [ $clusterTime ] - } - } + Class [ final class MongoDB\Driver\Cursor implements Iterator, Traversable, MongoDB\Driver\CursorInterface ] { - Method [ final public method advanceOperationTime ] { + - Constants [0] { + } - - Parameters [1] { - Parameter #0 [ $timestamp ] - } - } + - Static properties [0] { + } - Method [ final public method commitTransaction ] { + - Static methods [0] { + } - - Parameters [0] { - } - } + - Properties [0] { + } - Method [ final public method endSession ] { + - Methods [11] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getClusterTime ] { + Method [ public method current ] { - Parameters [0] { } + - Return [ object|array|null ] } - Method [ final public method getLogicalSessionId ] { + Method [ final public method getId ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ bool $asInt64 = false ] } + - Tentative return [ MongoDB\Driver\CursorId|MongoDB\BSON\Int64 ] } - Method [ final public method getOperationTime ] { + Method [ final public method getServer ] { - Parameters [0] { } + - Return [ MongoDB\Driver\Server ] } - Method [ final public method getServer ] { + Method [ final public method isDead ] { - Parameters [0] { } + - Return [ bool ] } - Method [ final public method getTransactionOptions ] { + Method [ public method key ] { - Parameters [0] { } + - Return [ ?int ] } - Method [ final public method getTransactionState ] { + Method [ public method next ] { - Parameters [0] { } + - Return [ void ] } - Method [ final public method isInTransaction ] { + Method [ public method rewind ] { - Parameters [0] { } + - Return [ void ] } - Method [ final public method startTransaction ] { + Method [ final public method setTypeMap ] { - Parameters [1] { - Parameter #0 [ array or NULL $options ] + Parameter #0 [ array $typemap ] } + - Return [ void ] } - Method [ final private method __construct ] { + Method [ final public method toArray ] { - Parameters [0] { } + - Return [ array ] } - Method [ final public method __wakeup ] { + Method [ public method valid ] { - Parameters [0] { } + - Return [ bool ] } } } - Class [ final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\Driver\CursorId implements Stringable, Serializable ] { - - Constants [1] { - Constant [ public string MAJORITY ] { majority } + - Constants [0] { } - Static properties [0] { } - Static methods [1] { - Method [ static public method __set_state ] { + Method [ final static public method __set_state ] { - Parameters [1] { Parameter #0 [ array $properties ] } + - Return [ MongoDB\Driver\CursorId ] } } - Properties [0] { } - - Methods [8] { - Method [ final public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $w ] - Parameter #1 [ $wtimeout ] - Parameter #2 [ $journal ] - } - } - - Method [ final public method getW ] { + - Methods [6] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getWtimeout ] { + Method [ final public method __toString ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method getJournal ] { + Method [ final public method serialize ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method isDefault ] { + Method [ final public method unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $data ] } + - Return [ void ] } - Method [ final public method bsonSerialize ] { + Method [ final public method __unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $data ] } + - Return [ void ] } - Method [ final public method serialize ] { + Method [ final public method __serialize ] { - Parameters [0] { } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } + - Return [ array ] } } } - Class [ final class MongoDB\Driver\WriteConcernError ] { + Class [ final class MongoDB\Driver\Manager ] { - Constants [0] { } @@ -2133,93 +2322,154 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [5] { - Method [ final public method getCode ] { + - Methods [17] { + Method [ final public method __construct ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ ?string $uri = null ] + Parameter #1 [ ?array $uriOptions = null ] + Parameter #2 [ ?array $driverOptions = null ] } } - Method [ final public method getInfo ] { + Method [ final public method addSubscriber ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\Subscriber $subscriber ] } + - Return [ void ] } - Method [ final public method getMessage ] { + Method [ final public method createClientEncryption ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ array $options ] } + - Return [ MongoDB\Driver\ClientEncryption ] } - Method [ final private method __construct ] { + Method [ final public method executeBulkWrite ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ string $namespace ] + Parameter #1 [ MongoDB\Driver\BulkWrite $bulk ] + Parameter #2 [ MongoDB\Driver\WriteConcern|array|null $options = null ] } + - Return [ MongoDB\Driver\WriteResult ] } - Method [ final public method __wakeup ] { + Method [ final public method executeCommand ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ MongoDB\Driver\ReadPreference|array|null $options = null ] } + - Return [ MongoDB\Driver\Cursor ] } - } - } - Class [ final class MongoDB\Driver\WriteError ] { + Method [ final public method executeQuery ] { - - Constants [0] { - } + - Parameters [3] { + Parameter #0 [ string $namespace ] + Parameter #1 [ MongoDB\Driver\Query $query ] + Parameter #2 [ MongoDB\Driver\ReadPreference|array|null $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } - - Static properties [0] { - } + Method [ final public method executeReadCommand ] { - - Static methods [0] { - } + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ ?array $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } - - Properties [0] { - } + Method [ final public method executeReadWriteCommand ] { - - Methods [6] { - Method [ final public method getCode ] { + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ ?array $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } - - Parameters [0] { + Method [ final public method executeWriteCommand ] { + + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ ?array $options = null ] } + - Return [ MongoDB\Driver\Cursor ] } - Method [ final public method getIndex ] { + Method [ final public method getEncryptedFieldsMap ] { - Parameters [0] { } + - Return [ object|array|null ] } - Method [ final public method getMessage ] { + Method [ final public method getReadConcern ] { - Parameters [0] { } + - Return [ MongoDB\Driver\ReadConcern ] } - Method [ final public method getInfo ] { + Method [ final public method getReadPreference ] { - Parameters [0] { } + - Return [ MongoDB\Driver\ReadPreference ] } - Method [ final private method __construct ] { + Method [ final public method getServers ] { - Parameters [0] { } + - Return [ array ] } - Method [ final public method __wakeup ] { + Method [ final public method getWriteConcern ] { - Parameters [0] { } + - Return [ MongoDB\Driver\WriteConcern ] + } + + Method [ final public method removeSubscriber ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\Subscriber $subscriber ] + } + - Return [ void ] + } + + Method [ final public method selectServer ] { + + - Parameters [1] { + Parameter #0 [ ?MongoDB\Driver\ReadPreference $readPreference = null ] + } + - Return [ MongoDB\Driver\Server ] + } + + Method [ final public method startSession ] { + + - Parameters [1] { + Parameter #0 [ ?array $options = null ] + } + - Return [ MongoDB\Driver\Session ] } } } - Class [ final class MongoDB\Driver\WriteResult ] { + Class [ final class MongoDB\Driver\Query ] { - Constants [0] { } @@ -2233,82 +2483,1510 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [12] { - Method [ final public method getInsertedCount ] { + - Methods [1] { + Method [ final public method __construct ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ object|array $filter ] + Parameter #1 [ ?array $queryOptions = null ] } } + } + } - Method [ final public method getMatchedCount ] { + Class [ final class MongoDB\Driver\ReadConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type, Serializable ] { - - Parameters [0] { + - Constants [5] { + Constant [ public string LINEARIZABLE ] { linearizable } + Constant [ public string LOCAL ] { local } + Constant [ public string MAJORITY ] { majority } + Constant [ public string AVAILABLE ] { available } + Constant [ public string SNAPSHOT ] { snapshot } + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] } + - Return [ MongoDB\Driver\ReadConcern ] } + } - Method [ final public method getModifiedCount ] { + - Properties [0] { + } - - Parameters [0] { + - Methods [8] { + Method [ final public method __construct ] { + + - Parameters [1] { + Parameter #0 [ ?string $level = null ] } } + Method [ final public method getLevel ] { + + - Parameters [0] { + } + - Return [ ?string ] + } + + Method [ final public method isDefault ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method bsonSerialize ] { + + - Parameters [0] { + } + - Return [ stdClass ] + } + + Method [ final public method serialize ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ string $data ] + } + - Return [ void ] + } + + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + } + } + + Class [ final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable, MongoDB\BSON\Type, Serializable ] { + + - Constants [12] { + Constant [ public int RP_PRIMARY ] { 1 } + Constant [ public int RP_PRIMARY_PREFERRED ] { 5 } + Constant [ public int RP_SECONDARY ] { 2 } + Constant [ public int RP_SECONDARY_PREFERRED ] { 6 } + Constant [ public int RP_NEAREST ] { 10 } + Constant [ public string PRIMARY ] { primary } + Constant [ public string PRIMARY_PREFERRED ] { primaryPreferred } + Constant [ public string SECONDARY ] { secondary } + Constant [ public string SECONDARY_PREFERRED ] { secondaryPreferred } + Constant [ public string NEAREST ] { nearest } + Constant [ public int NO_MAX_STALENESS ] { -1 } + Constant [ public int SMALLEST_MAX_STALENESS_SECONDS ] { 90 } + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\Driver\ReadPreference ] + } + } + + - Properties [0] { + } + + - Methods [11] { + Method [ final public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string|int $mode ] + Parameter #1 [ ?array $tagSets = null ] + Parameter #2 [ ?array $options = null ] + } + } + + Method [ final public method getHedge ] { + + - Parameters [0] { + } + - Return [ ?object ] + } + + Method [ final public method getMaxStalenessSeconds ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getMode ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getModeString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getTagSets ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method bsonSerialize ] { + + - Parameters [0] { + } + - Return [ stdClass ] + } + + Method [ final public method serialize ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ string $data ] + } + - Return [ void ] + } + + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + } + } + + Class [ final class MongoDB\Driver\Server ] { + + - Constants [10] { + Constant [ public int TYPE_UNKNOWN ] { 0 } + Constant [ public int TYPE_STANDALONE ] { 1 } + Constant [ public int TYPE_MONGOS ] { 2 } + Constant [ public int TYPE_POSSIBLE_PRIMARY ] { 3 } + Constant [ public int TYPE_RS_PRIMARY ] { 4 } + Constant [ public int TYPE_RS_SECONDARY ] { 5 } + Constant [ public int TYPE_RS_ARBITER ] { 6 } + Constant [ public int TYPE_RS_OTHER ] { 7 } + Constant [ public int TYPE_RS_GHOST ] { 8 } + Constant [ public int TYPE_LOAD_BALANCER ] { 9 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [19] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method executeBulkWrite ] { + + - Parameters [3] { + Parameter #0 [ string $namespace ] + Parameter #1 [ MongoDB\Driver\BulkWrite $bulkWrite ] + Parameter #2 [ MongoDB\Driver\WriteConcern|array|null $options = null ] + } + - Return [ MongoDB\Driver\WriteResult ] + } + + Method [ final public method executeCommand ] { + + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ MongoDB\Driver\ReadPreference|array|null $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } + + Method [ final public method executeQuery ] { + + - Parameters [3] { + Parameter #0 [ string $namespace ] + Parameter #1 [ MongoDB\Driver\Query $query ] + Parameter #2 [ MongoDB\Driver\ReadPreference|array|null $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } + + Method [ final public method executeReadCommand ] { + + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ ?array $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } + + Method [ final public method executeReadWriteCommand ] { + + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ ?array $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } + + Method [ final public method executeWriteCommand ] { + + - Parameters [3] { + Parameter #0 [ string $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ ?array $options = null ] + } + - Return [ MongoDB\Driver\Cursor ] + } + + Method [ final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getInfo ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getLatency ] { + + - Parameters [0] { + } + - Return [ ?int ] + } + + Method [ final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getServerDescription ] { + + - Parameters [0] { + } + - Return [ MongoDB\Driver\ServerDescription ] + } + + Method [ final public method getTags ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getType ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method isArbiter ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method isHidden ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method isPassive ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method isPrimary ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method isSecondary ] { + + - Parameters [0] { + } + - Return [ bool ] + } + } + } + + Class [ final class MongoDB\Driver\ServerApi implements MongoDB\BSON\Serializable, MongoDB\BSON\Type, Serializable ] { + + - Constants [1] { + Constant [ public string V1 ] { 1 } + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\Driver\ServerApi ] + } + } + + - Properties [0] { + } + + - Methods [6] { + Method [ final public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $version ] + Parameter #1 [ ?bool $strict = null ] + Parameter #2 [ ?bool $deprecationErrors = null ] + } + } + + Method [ final public method bsonSerialize ] { + + - Parameters [0] { + } + - Return [ stdClass ] + } + + Method [ final public method serialize ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ string $data ] + } + - Return [ void ] + } + + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + } + } + + Class [ final class MongoDB\Driver\ServerDescription ] { + + - Constants [10] { + Constant [ public string TYPE_UNKNOWN ] { Unknown } + Constant [ public string TYPE_STANDALONE ] { Standalone } + Constant [ public string TYPE_MONGOS ] { Mongos } + Constant [ public string TYPE_POSSIBLE_PRIMARY ] { PossiblePrimary } + Constant [ public string TYPE_RS_PRIMARY ] { RSPrimary } + Constant [ public string TYPE_RS_SECONDARY ] { RSSecondary } + Constant [ public string TYPE_RS_ARBITER ] { RSArbiter } + Constant [ public string TYPE_RS_OTHER ] { RSOther } + Constant [ public string TYPE_RS_GHOST ] { RSGhost } + Constant [ public string TYPE_LOAD_BALANCER ] { LoadBalancer } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method getHelloResponse ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getLastUpdateTime ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getRoundTripTime ] { + + - Parameters [0] { + } + - Return [ ?int ] + } + + Method [ final public method getType ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ final class MongoDB\Driver\TopologyDescription ] { + + - Constants [6] { + Constant [ public string TYPE_UNKNOWN ] { Unknown } + Constant [ public string TYPE_SINGLE ] { Single } + Constant [ public string TYPE_SHARDED ] { Sharded } + Constant [ public string TYPE_REPLICA_SET_NO_PRIMARY ] { ReplicaSetNoPrimary } + Constant [ public string TYPE_REPLICA_SET_WITH_PRIMARY ] { ReplicaSetWithPrimary } + Constant [ public string TYPE_LOAD_BALANCED ] { LoadBalanced } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method getServers ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getType ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method hasReadableServer ] { + + - Parameters [1] { + Parameter #0 [ ?MongoDB\Driver\ReadPreference $readPreference = null ] + } + - Return [ bool ] + } + + Method [ final public method hasWritableServer ] { + + - Parameters [0] { + } + - Return [ bool ] + } + } + } + + Class [ final class MongoDB\Driver\Session ] { + + - Constants [5] { + Constant [ public string TRANSACTION_NONE ] { none } + Constant [ public string TRANSACTION_STARTING ] { starting } + Constant [ public string TRANSACTION_IN_PROGRESS ] { in_progress } + Constant [ public string TRANSACTION_COMMITTED ] { committed } + Constant [ public string TRANSACTION_ABORTED ] { aborted } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [15] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method abortTransaction ] { + + - Parameters [0] { + } + - Return [ void ] + } + + Method [ final public method advanceClusterTime ] { + + - Parameters [1] { + Parameter #0 [ object|array $clusterTime ] + } + - Return [ void ] + } + + Method [ final public method advanceOperationTime ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\BSON\TimestampInterface $operationTime ] + } + - Return [ void ] + } + + Method [ final public method commitTransaction ] { + + - Parameters [0] { + } + - Return [ void ] + } + + Method [ final public method endSession ] { + + - Parameters [0] { + } + - Return [ void ] + } + + Method [ final public method getClusterTime ] { + + - Parameters [0] { + } + - Return [ ?object ] + } + + Method [ final public method getLogicalSessionId ] { + + - Parameters [0] { + } + - Return [ object ] + } + + Method [ final public method getOperationTime ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\Timestamp ] + } + + Method [ final public method getServer ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\Driver\Server ] + } + + Method [ final public method getTransactionOptions ] { + + - Parameters [0] { + } + - Return [ ?array ] + } + + Method [ final public method getTransactionState ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method isDirty ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method isInTransaction ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method startTransaction ] { + + - Parameters [1] { + Parameter #0 [ ?array $options = null ] + } + - Return [ void ] + } + } + } + + Class [ final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type, Serializable ] { + + - Constants [1] { + Constant [ public string MAJORITY ] { majority } + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ final static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + - Return [ MongoDB\Driver\WriteConcern ] + } + } + + - Properties [0] { + } + + - Methods [10] { + Method [ final public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string|int $w ] + Parameter #1 [ ?int $wtimeout = null ] + Parameter #2 [ ?bool $journal = null ] + } + } + + Method [ final public method getJournal ] { + + - Parameters [0] { + } + - Return [ ?bool ] + } + + Method [ final public method getW ] { + + - Parameters [0] { + } + - Return [ string|int|null ] + } + + Method [ final public method getWtimeout ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method isDefault ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ final public method bsonSerialize ] { + + - Parameters [0] { + } + - Return [ stdClass ] + } + + Method [ final public method serialize ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ string $data ] + } + - Return [ void ] + } + + Method [ final public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ final public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + } + } + + Class [ final class MongoDB\Driver\WriteConcernError ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getInfo ] { + + - Parameters [0] { + } + - Return [ ?object ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ final class MongoDB\Driver\WriteError ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getIndex ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getInfo ] { + + - Parameters [0] { + } + - Return [ ?object ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ final class MongoDB\Driver\WriteResult ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [12] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method getInsertedCount ] { + + - Parameters [0] { + } + - Return [ ?int ] + } + + Method [ final public method getMatchedCount ] { + + - Parameters [0] { + } + - Return [ ?int ] + } + + Method [ final public method getModifiedCount ] { + + - Parameters [0] { + } + - Return [ ?int ] + } + Method [ final public method getDeletedCount ] { - Parameters [0] { } + - Return [ ?int ] + } + + Method [ final public method getUpsertedCount ] { + + - Parameters [0] { + } + - Return [ ?int ] + } + + Method [ final public method getServer ] { + + - Parameters [0] { + } + - Return [ MongoDB\Driver\Server ] + } + + Method [ final public method getUpsertedIds ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getWriteConcernError ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\Driver\WriteConcernError ] + } + + Method [ final public method getWriteErrors ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getErrorReplies ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method isAcknowledged ] { + + - Parameters [0] { + } + - Return [ bool ] + } + } + } + + Interface [ interface MongoDB\Driver\Exception\Exception extends Throwable, Stringable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [8] { + Method [ abstract public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ abstract public method getCode ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ abstract public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ abstract public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ abstract public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ abstract public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + } + + - Methods [11] { + Method [ final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ string $errorLabel ] + } + - Return [ bool ] + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class MongoDB\Driver\Exception\ServerException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable, Stringable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + } + + - Methods [11] { + Method [ final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ string $errorLabel ] + } + - Return [ bool ] + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class MongoDB\Driver\Exception\ConnectionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable, Stringable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + } + + - Methods [11] { + Method [ final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ string $errorLabel ] + } + - Return [ bool ] + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getUpsertedCount ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } + } + } - Method [ final public method getServer ] { + Class [ abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\ServerException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [6] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + Property [ protected $writeResult = NULL ] + } + + - Methods [12] { + Method [ final public method getWriteResult ] { - Parameters [0] { } + - Return [ MongoDB\Driver\WriteResult ] } - Method [ final public method getUpsertedIds ] { + Method [ final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ string $errorLabel ] + } + - Return [ bool ] + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { - Parameters [0] { } + - Tentative return [ void ] } - Method [ final public method getWriteConcernError ] { + Method [ final public method getMessage ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method getWriteErrors ] { + Method [ final public method getCode ] { - Parameters [0] { } } - Method [ final public method isAcknowledged ] { + Method [ final public method getFile ] { - Parameters [0] { } + - Return [ string ] } - Method [ final private method __construct ] { + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getTrace ] { - Parameters [0] { } + - Return [ array ] } - Method [ final public method __wakeup ] { + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } - Interface [ interface MongoDB\Driver\Exception\Exception extends Throwable ] { + Class [ class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -2319,37 +3997,315 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [0] { + - Properties [5] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + } + + - Methods [11] { + Method [ final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ string $errorLabel ] + } + - Return [ bool ] + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements MongoDB\Driver\Exception\Exception, Throwable, Stringable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [6] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + Property [ protected $writeResult = NULL ] + } + + - Methods [12] { + Method [ final public method getWriteResult ] { + + - Parameters [0] { + } + - Return [ MongoDB\Driver\WriteResult ] + } + + Method [ final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ string $errorLabel ] + } + - Return [ bool ] + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class MongoDB\Driver\Exception\CommandException extends MongoDB\Driver\Exception\ServerException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { + + - Constants [0] { + } + + - Static properties [0] { } - - Methods [8] { - Method [ abstract public method getMessage ] { + - Static methods [0] { + } + + - Properties [6] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] + Property [ protected $resultDocument = NULL ] + } + + - Methods [12] { + Method [ final public method getResultDocument ] { + + - Parameters [0] { + } + - Return [ object ] + } + + Method [ final public method hasErrorLabel ] { + + - Parameters [1] { + Parameter #0 [ string $errorLabel ] + } + - Return [ bool ] + } + + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ abstract public method getCode ] { + Method [ final public method getCode ] { + + - Parameters [0] { + } } - Method [ abstract public method getFile ] { + Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ abstract public method getLine ] { + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } - Method [ abstract public method getTrace ] { + Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } - Method [ abstract public method getPrevious ] { + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } - Method [ abstract public method getTraceAsString ] { + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ abstract public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -2361,60 +4317,96 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] } - Methods [11] { - Method [ final public method hasErrorLabel ] { + Method [ final public method hasErrorLabel ] { - Parameters [1] { - Parameter #0 [ $label ] + Parameter #0 [ string $errorLabel ] } + - Return [ bool ] } Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ class MongoDB\Driver\Exception\ServerException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ class MongoDB\Driver\Exception\EncryptionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable, Stringable ] { - Constants [0] { } @@ -2426,60 +4418,96 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] } - Methods [11] { Method [ final public method hasErrorLabel ] { - Parameters [1] { - Parameter #0 [ $label ] + Parameter #0 [ string $errorLabel ] } + - Return [ bool ] } Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ class MongoDB\Driver\Exception\ConnectionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ final class MongoDB\Driver\Exception\ExecutionTimeoutException extends MongoDB\Driver\Exception\ServerException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -2491,60 +4519,96 @@ Extension [ extension #70 mongodb version 1.7.5 ] { } - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] } - Methods [11] { Method [ final public method hasErrorLabel ] { - Parameters [1] { - Parameter #0 [ $label ] + Parameter #0 [ string $errorLabel ] } + - Return [ bool ] } Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\ServerException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, Stringable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -2555,68 +4619,88 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [6] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] - Property [ protected $writeResult ] + - Properties [4] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] } - - Methods [12] { - Method [ final public method getWriteResult ] { - - - Parameters [0] { - } - } - - Method [ final public method hasErrorLabel ] { - - - Parameters [1] { - Parameter #0 [ $label ] - } - } - + - Methods [10] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\LogicException extends LogicException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -2627,61 +4711,88 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + - Properties [4] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] } - - Methods [11] { - Method [ final public method hasErrorLabel ] { - - - Parameters [1] { - Parameter #0 [ $label ] - } - } - + - Methods [10] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ final class MongoDB\Driver\Exception\SSLConnectionException extends MongoDB\Driver\Exception\ConnectionException implements Stringable, Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -2692,68 +4803,97 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [6] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] - Property [ protected $writeResult ] + - Properties [5] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ protected $errorLabels = NULL ] } - - Methods [12] { - Method [ final public method getWriteResult ] { - - - Parameters [0] { - } - } - + - Methods [11] { Method [ final public method hasErrorLabel ] { - Parameters [1] { - Parameter #0 [ $label ] + Parameter #0 [ string $errorLabel ] } + - Return [ bool ] } Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ class MongoDB\Driver\Exception\CommandException extends MongoDB\Driver\Exception\ServerException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, Stringable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -2764,68 +4904,88 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [6] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] - Property [ protected $resultDocument ] + - Properties [4] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] } - - Methods [12] { - Method [ final public method getResultDocument ] { - - - Parameters [0] { - } - } - - Method [ final public method hasErrorLabel ] { - - - Parameters [1] { - Parameter #0 [ $label ] - } - } - + - Methods [10] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } - Class [ final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Interface [ interface MongoDB\Driver\Monitoring\Subscriber ] { - Constants [0] { } @@ -2836,61 +4996,55 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + - Properties [0] { } - - Methods [11] { - Method [ final public method hasErrorLabel ] { - - - Parameters [1] { - Parameter #0 [ $label ] - } - } + - Methods [0] { + } + } - Method [ public method __construct ] { + Interface [ interface MongoDB\Driver\Monitoring\CommandSubscriber extends MongoDB\Driver\Monitoring\Subscriber ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] - } - } + - Constants [0] { + } - Method [ public method __wakeup ] { - } + - Static properties [0] { + } - Method [ final public method getMessage ] { - } + - Static methods [0] { + } - Method [ final public method getCode ] { - } + - Properties [0] { + } - Method [ final public method getFile ] { - } + - Methods [3] { + Method [ abstract public method commandStarted ] { - Method [ final public method getLine ] { + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\CommandStartedEvent $event ] + } + - Tentative return [ void ] } - Method [ final public method getTrace ] { - } + Method [ abstract public method commandSucceeded ] { - Method [ final public method getPrevious ] { + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\CommandSucceededEvent $event ] + } + - Tentative return [ void ] } - Method [ final public method getTraceAsString ] { - } + Method [ abstract public method commandFailed ] { - Method [ public method __toString ] { + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\CommandFailedEvent $event ] + } + - Tentative return [ void ] } } } - Class [ class MongoDB\Driver\Exception\EncryptionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ final class MongoDB\Driver\Monitoring\CommandFailedEvent ] { - Constants [0] { } @@ -2901,61 +5055,103 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + - Properties [0] { } - - Methods [11] { - Method [ final public method hasErrorLabel ] { + - Methods [13] { + Method [ final private method __construct ] { - - Parameters [1] { - Parameter #0 [ $label ] + - Parameters [0] { } } - Method [ public method __construct ] { + Method [ final public method getCommandName ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } + - Return [ string ] } - Method [ public method __wakeup ] { + Method [ final public method getDatabaseName ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getMessage ] { + Method [ final public method getDurationMicros ] { + + - Parameters [0] { + } + - Return [ int ] } - Method [ final public method getCode ] { + Method [ final public method getError ] { + + - Parameters [0] { + } + - Return [ Exception ] } - Method [ final public method getFile ] { + Method [ final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getLine ] { + Method [ final public method getOperationId ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getTrace ] { + Method [ final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] } - Method [ final public method getPrevious ] { + Method [ final public method getReply ] { + + - Parameters [0] { + } + - Return [ object ] } - Method [ final public method getTraceAsString ] { + Method [ final public method getRequestId ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getServer ] { + + - Parameters [0] { + } + - Return [ MongoDB\Driver\Server ] + } + + Method [ final public method getServiceId ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\ObjectId ] } - Method [ public method __toString ] { + Method [ final public method getServerConnectionId ] { + + - Parameters [0] { + } + - Return [ ?int ] } } } - Class [ final class MongoDB\Driver\Exception\ExecutionTimeoutException extends MongoDB\Driver\Exception\ServerException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Monitoring\CommandStartedEvent ] { - Constants [0] { } @@ -2966,61 +5162,89 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + - Properties [0] { } - Methods [11] { - Method [ final public method hasErrorLabel ] { + Method [ final private method __construct ] { - - Parameters [1] { - Parameter #0 [ $label ] + - Parameters [0] { } } - Method [ public method __construct ] { + Method [ final public method getCommand ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } + - Return [ object ] } - Method [ public method __wakeup ] { + Method [ final public method getCommandName ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getMessage ] { + Method [ final public method getDatabaseName ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getCode ] { + Method [ final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getFile ] { + Method [ final public method getOperationId ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getLine ] { + Method [ final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] } - Method [ final public method getTrace ] { + Method [ final public method getRequestId ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getPrevious ] { + Method [ final public method getServer ] { + + - Parameters [0] { + } + - Return [ MongoDB\Driver\Server ] } - Method [ final public method getTraceAsString ] { + Method [ final public method getServiceId ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\ObjectId ] } - Method [ public method __toString ] { + Method [ final public method getServerConnectionId ] { + + - Parameters [0] { + } + - Return [ ?int ] } } } - Class [ class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Monitoring\CommandSucceededEvent ] { - Constants [0] { } @@ -3031,55 +5255,104 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + - Properties [0] { } - - Methods [10] { - Method [ public method __construct ] { + - Methods [12] { + Method [ final private method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } } - Method [ public method __wakeup ] { + Method [ final public method getCommandName ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getMessage ] { + Method [ final public method getDatabaseName ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getCode ] { + Method [ final public method getDurationMicros ] { + + - Parameters [0] { + } + - Return [ int ] } - Method [ final public method getFile ] { + Method [ final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getLine ] { + Method [ final public method getOperationId ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getTrace ] { + Method [ final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] } - Method [ final public method getPrevious ] { + Method [ final public method getReply ] { + + - Parameters [0] { + } + - Return [ object ] } - Method [ final public method getTraceAsString ] { + Method [ final public method getRequestId ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getServer ] { + + - Parameters [0] { + } + - Return [ MongoDB\Driver\Server ] } - Method [ public method __toString ] { + Method [ final public method getServiceId ] { + + - Parameters [0] { + } + - Return [ ?MongoDB\BSON\ObjectId ] + } + + Method [ final public method getServerConnectionId ] { + + - Parameters [0] { + } + - Return [ ?int ] } } } - Class [ class MongoDB\Driver\Exception\LogicException extends LogicException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Interface [ interface MongoDB\Driver\Monitoring\LogSubscriber extends MongoDB\Driver\Monitoring\Subscriber ] { - - Constants [0] { + - Constants [6] { + Constant [ public int LEVEL_ERROR ] { 0 } + Constant [ public int LEVEL_CRITICAL ] { 1 } + Constant [ public int LEVEL_WARNING ] { 2 } + Constant [ public int LEVEL_MESSAGE ] { 3 } + Constant [ public int LEVEL_INFO ] { 4 } + Constant [ public int LEVEL_DEBUG ] { 5 } } - Static properties [0] { @@ -3088,53 +5361,23 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + - Properties [0] { } - - Methods [10] { - Method [ public method __construct ] { + - Methods [1] { + Method [ abstract public method log ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ int $level ] + Parameter #1 [ string $domain ] + Parameter #2 [ string $message ] } - } - - Method [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { + - Return [ void ] } } } - Class [ final class MongoDB\Driver\Exception\SSLConnectionException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Interface [ interface MongoDB\Driver\Monitoring\SDAMSubscriber extends MongoDB\Driver\Monitoring\Subscriber ] { - Constants [0] { } @@ -3145,61 +5388,85 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $errorLabels ] + - Properties [0] { } - - Methods [11] { - Method [ final public method hasErrorLabel ] { + - Methods [9] { + Method [ abstract public method serverChanged ] { - Parameters [1] { - Parameter #0 [ $label ] + Parameter #0 [ MongoDB\Driver\Monitoring\ServerChangedEvent $event ] } + - Tentative return [ void ] } - Method [ public method __construct ] { + Method [ abstract public method serverClosed ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\ServerClosedEvent $event ] } + - Tentative return [ void ] } - Method [ public method __wakeup ] { - } + Method [ abstract public method serverOpening ] { - Method [ final public method getMessage ] { + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\ServerOpeningEvent $event ] + } + - Tentative return [ void ] } - Method [ final public method getCode ] { - } + Method [ abstract public method serverHeartbeatFailed ] { - Method [ final public method getFile ] { + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent $event ] + } + - Tentative return [ void ] } - Method [ final public method getLine ] { + Method [ abstract public method serverHeartbeatStarted ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent $event ] + } + - Tentative return [ void ] } - Method [ final public method getTrace ] { + Method [ abstract public method serverHeartbeatSucceeded ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent $event ] + } + - Tentative return [ void ] } - Method [ final public method getPrevious ] { + Method [ abstract public method topologyChanged ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\TopologyChangedEvent $event ] + } + - Tentative return [ void ] } - Method [ final public method getTraceAsString ] { + Method [ abstract public method topologyClosed ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\TopologyClosedEvent $event ] + } + - Tentative return [ void ] } - Method [ public method __toString ] { + Method [ abstract public method topologyOpening ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\TopologyOpeningEvent $event ] + } + - Tentative return [ void ] } } } - Class [ class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Monitoring\ServerChangedEvent ] { - Constants [0] { } @@ -3210,53 +5477,54 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Static methods [0] { } - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + - Properties [0] { } - - Methods [10] { - Method [ public method __construct ] { + - Methods [6] { + Method [ final private method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } } - Method [ public method __wakeup ] { - } + Method [ final public method getPort ] { - Method [ final public method getMessage ] { + - Parameters [0] { + } + - Return [ int ] } - Method [ final public method getCode ] { - } + Method [ final public method getHost ] { - Method [ final public method getFile ] { + - Parameters [0] { + } + - Return [ string ] } - Method [ final public method getLine ] { - } + Method [ final public method getNewDescription ] { - Method [ final public method getTrace ] { + - Parameters [0] { + } + - Return [ MongoDB\Driver\ServerDescription ] } - Method [ final public method getPrevious ] { - } + Method [ final public method getPreviousDescription ] { - Method [ final public method getTraceAsString ] { + - Parameters [0] { + } + - Return [ MongoDB\Driver\ServerDescription ] } - Method [ public method __toString ] { + Method [ final public method getTopologyId ] { + + - Parameters [0] { + } + - Return [ MongoDB\BSON\ObjectId ] } } } - Interface [ interface MongoDB\Driver\Monitoring\Subscriber ] { + Class [ final class MongoDB\Driver\Monitoring\ServerClosedEvent ] { - Constants [0] { } @@ -3270,49 +5538,37 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [0] { - } - } - - Interface [ interface MongoDB\Driver\Monitoring\CommandSubscriber extends MongoDB\Driver\Monitoring\Subscriber ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } + - Methods [4] { + Method [ final private method __construct ] { - - Properties [0] { - } + - Parameters [0] { + } + } - - Methods [3] { - Method [ abstract public method commandStarted ] { + Method [ final public method getPort ] { - - Parameters [1] { - Parameter #0 [ MongoDB\Driver\Monitoring\CommandStartedEvent $event ] + - Parameters [0] { } + - Return [ int ] } - Method [ abstract public method commandSucceeded ] { + Method [ final public method getHost ] { - - Parameters [1] { - Parameter #0 [ MongoDB\Driver\Monitoring\CommandSucceededEvent $event ] + - Parameters [0] { } + - Return [ string ] } - Method [ abstract public method commandFailed ] { + Method [ final public method getTopologyId ] { - - Parameters [1] { - Parameter #0 [ MongoDB\Driver\Monitoring\CommandFailedEvent $event ] + - Parameters [0] { } + - Return [ MongoDB\BSON\ObjectId ] } } } - Class [ final class MongoDB\Driver\Monitoring\CommandFailedEvent ] { + Class [ final class MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent ] { - Constants [0] { } @@ -3326,64 +5582,95 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [9] { + - Methods [6] { Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getCommandName ] { + Method [ final public method getDurationMicros ] { - Parameters [0] { } + - Return [ int ] } Method [ final public method getError ] { - Parameters [0] { } + - Return [ Exception ] } - Method [ final public method getDurationMicros ] { + Method [ final public method getPort ] { - Parameters [0] { } + - Return [ int ] } - Method [ final public method getOperationId ] { + Method [ final public method getHost ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method getReply ] { + Method [ final public method isAwaited ] { - Parameters [0] { } + - Return [ bool ] } + } + } - Method [ final public method getRequestId ] { + Class [ final class MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getServer ] { + Method [ final public method getPort ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getHost ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method __wakeup ] { + Method [ final public method isAwaited ] { - Parameters [0] { } + - Return [ bool ] } } } - Class [ final class MongoDB\Driver\Monitoring\CommandStartedEvent ] { + Class [ final class MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent ] { - Constants [0] { } @@ -3397,58 +5684,95 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [8] { + - Methods [6] { Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getCommand ] { + Method [ final public method getDurationMicros ] { - Parameters [0] { } + - Return [ int ] } - Method [ final public method getCommandName ] { + Method [ final public method getReply ] { - Parameters [0] { } + - Return [ object ] } - Method [ final public method getDatabaseName ] { + Method [ final public method getPort ] { - Parameters [0] { } + - Return [ int ] } - Method [ final public method getOperationId ] { + Method [ final public method getHost ] { - Parameters [0] { } + - Return [ string ] } - Method [ final public method getRequestId ] { + Method [ final public method isAwaited ] { - Parameters [0] { } + - Return [ bool ] } + } + } - Method [ final public method getServer ] { + Class [ final class MongoDB\Driver\Monitoring\ServerOpeningEvent ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method getPort ] { - Parameters [0] { } + - Return [ int ] } - Method [ final public method __wakeup ] { + Method [ final public method getHost ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getTopologyId ] { - Parameters [0] { } + - Return [ MongoDB\BSON\ObjectId ] } } } - Class [ final class MongoDB\Driver\Monitoring\CommandSucceededEvent ] { + Class [ final class MongoDB\Driver\Monitoring\TopologyChangedEvent ] { - Constants [0] { } @@ -3462,53 +5786,92 @@ Extension [ extension #70 mongodb version 1.7.5 ] { - Properties [0] { } - - Methods [8] { + - Methods [4] { Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getCommandName ] { + Method [ final public method getNewDescription ] { - Parameters [0] { } + - Return [ MongoDB\Driver\TopologyDescription ] } - Method [ final public method getDurationMicros ] { + Method [ final public method getPreviousDescription ] { - Parameters [0] { } + - Return [ MongoDB\Driver\TopologyDescription ] } - Method [ final public method getOperationId ] { + Method [ final public method getTopologyId ] { - Parameters [0] { } + - Return [ MongoDB\BSON\ObjectId ] } + } + } - Method [ final public method getReply ] { + Class [ final class MongoDB\Driver\Monitoring\TopologyClosedEvent ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method getRequestId ] { + Method [ final public method getTopologyId ] { - Parameters [0] { } + - Return [ MongoDB\BSON\ObjectId ] } + } + } - Method [ final public method getServer ] { + Class [ final class MongoDB\Driver\Monitoring\TopologyOpeningEvent ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method __wakeup ] { + Method [ final public method getTopologyId ] { - Parameters [0] { } + - Return [ MongoDB\BSON\ObjectId ] } } } diff --git a/php-pecl-mongodb2.spec b/php-pecl-mongodb2.spec index 3a60caa..894d8a2 100644 --- a/php-pecl-mongodb2.spec +++ b/php-pecl-mongodb2.spec @@ -1,97 +1,109 @@ # remirepo spec file for php-pecl-mongodb # -# Copyright (c) 2015-2025 Remi Collet -# License: CC-BY-SA -# 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 # -# we don't want -z defs linker flag -%undefine _strict_symbol_defs_build - %if 0%{?scl:1} -%global sub_prefix %{scl_prefix} %scl_package php-pecl-mongodb %else %global _root_prefix %{_prefix} %endif %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global pie_vend mongodb +%global pie_proj mongodb-extension %global pecl_name mongodb -%if "%{php_version}" < "5.6" -%global ini_name z-%{pecl_name}.ini -%else # After 40-smbclient.ini, see https://jira.mongodb.org/browse/PHPC-658 %global ini_name 50-%{pecl_name}.ini -%endif # test suite requires a MongoDB server -%global with_tests 0%{?_with_tests:1} - -# always use bundled libraries -%if 0 -%global with_syslib 1 -%global libmongo 1.16.1 -%global libmongover %(pkg-config --silence-errors --modversion libmongoc-1.0 2>/dev/null || echo %{libmongoc}) -%global libcrypt 1.0.1 -%global libcryptver %(pkg-config --silence-errors --modversion libmongocrypt 2>/dev/null || echo %{libcrypt}) +%bcond_with tests + +# temp for EL until available in EPEL +%if 0%{?fedora} >= 37 || 0%{?rhel} >= 8 +%bcond_without syslib %else -%global with_syslib 0 -%global libmongo 1.16.2 -%global libcrypt 1.0.3 +%bcond_with syslib +%endif + +# Bundled versions +%global bundled_libmongo 1.30.1 +%global bundled_libcrypt 1.12.0 +# Required versions (in config.m4) +%global minimal_libmongo 1.30.1 +%global minimal_libcrypt 1.12.0 + +%if %{with syslib} +# 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 -Name: %{?sub_prefix}php-pecl-%{pecl_name} -%global upstream_version 1.7.5 -#global upstream_prever RC1 -#global upstream_lower ~rc1 +Name: %{?scl_prefix}php-pecl-%{pecl_name} +%global upstream_version 1.21.0 +#global upstream_prever beta1 +#global upstream_lower ~beta1 +%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global _configure ../%{sources}/configure Version: %{upstream_version}%{?upstream_lower} -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -License: ASL 2.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +%if %{with syslib} +License: Apache-2.0 +%else +License: Apache-2.0 AND ISC AND MIT AND Zlib AND BSD-3-Clause +%endif URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel > 5.6 +BuildRequires: %{?scl_prefix}php-devel >= 8.1 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json -%if %{with_syslib} -BuildRequires: pkgconfig(libbson-1.0) >= %{libmongo} -BuildRequires: pkgconfig(libmongoc-1.0) >= %{libmongo} -BuildRequires: pkgconfig(libmongocrypt) >= %{libcrypt} -Requires: libbson%{?_isa} >= %{libmongover} -Requires: mongo-c-driver-libs%{?_isa} >= %{libmongover} -Requires: libmongocrypt%{?_isa} >= %{libcryptver} +%if %{with syslib} +BuildRequires: pkgconfig(libbson-1.0) >= %{system_libmongo} +BuildRequires: pkgconfig(libmongoc-1.0) >= %{system_libmongo} +BuildRequires: pkgconfig(libmongocrypt) >= %{system_libcrypt} +Requires: libbson%{?_isa} >= %{runtime_libmongo} +Requires: mongo-c-driver-libs%{?_isa} >= %{runtime_libmongo} +Requires: libmongocrypt%{?_isa} >= %{runtime_libcrypt} %else -BuildRequires: cyrus-sasl-devel BuildRequires: openssl-devel -BuildRequires: snappy-devel -BuildRequires: zlib-devel -# We require 50 to ensure use of libicu-last (same version than PHP) -BuildRequires: libicu-devel >= 50 -Provides: bundled(libbson) = %{libmongo} -Provides: bundled(mongo-c-driver) = %{libmongo} -Provides: bundled(libmongocrypt) = %{libcrypt} +BuildRequires: pkgconfig(libsasl2) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(zlib) +BuildRequires: pkgconfig(snappy) +%if 0%{?rhel} == 8 +# EL-8 will use bundled as only in subversion module +Provides: bundled(libutf8proc)= 2.8.0 +%else +BuildRequires: pkgconfig(libutf8proc) %endif -%if %{with_tests} +Provides: bundled(libbson) = %{bundled_libmongo} +Provides: bundled(mongo-c-driver) = %{bundled_libmongo} +Provides: bundled(libmongocrypt) = %{bundled_libcrypt} +%endif +%if %{with tests} BuildRequires: mongodb-server %endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-json%{?_isa} -%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_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} -%if "%{?scl_prefix}" != "%{?sub_prefix}" -Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%endif - +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 @@ -103,25 +115,39 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS - # Don't install/register tests sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -e '/LICENSE/s/role="doc"/role="src"/' \ -i package.xml -cd NTS +pushd %{sources} + +%if %{with syslib} +# Check our macro values +cat src/*_VERSION_CURRENT +grep -q %{bundled_libmongo} src/LIBMONGOC_VERSION_CURRENT +grep -q %{bundled_libcrypt} src/LIBMONGOCRYPT_VERSION_CURRENT + +grep CHECK_MODULES config.m4 +grep -q %{minimal_libmongo} config.m4 +grep -q %{minimal_libcrypt} config.m4 + +# temporary: lower minimal required versions +sed -e 's/%{minimal_libmongo}/%{system_libmongo}/;s/%{minimal_libcrypt}/%{system_libcrypt}/' -i config.m4 +%endif + # 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}. exit 1 fi -cd .. +popd + +mkdir NTS %if %{with_zts} -# Duplicate source tree for NTS / ZTS build -cp -pr NTS ZTS +mkdir ZTS %endif # Create configuration file @@ -138,46 +164,52 @@ EOF %{?dtsenable} peclbuild() { - %{_bindir}/${1}ize - -%if %{with_syslib} - # Ensure we use system library - # Need to be removed only after phpize because of m4_include - rm -r src/libmongoc* - %configure \ - --with-php-config=%{_bindir}/${1}-config \ +%if %{with syslib} --with-mongodb-system-libs \ - --with-mongodb-client-side-encryption \ - --enable-mongodb %else - - %configure \ - --with-php-config=%{_bindir}/${1}-config \ --enable-mongodb-crypto-system-profile \ - --with-mongodb-client-side-encryption \ + --with-mongodb-snappy \ + --with-mongodb-zlib \ + --with-mongodb-zstd \ --with-mongodb-sasl=cyrus \ - --with-mongodb-icu=yes \ --with-mongodb-ssl=openssl \ - --enable-mongodb +%if 0%{?rhel} == 8 + --with-mongodb-utf8proc=bundled \ +%else + --with-mongodb-utf8proc=system \ +%endif %endif + --with-php-config=${1} \ + --with-mongodb-client-side-encryption \ + --enable-mongodb - make %{?_smp_mflags} + %make_build } -cd NTS -peclbuild php +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 + rm -r src/libmongoc* +%endif + +cd ../NTS +peclbuild %{__phpconfig} %if %{with_zts} cd ../ZTS -peclbuild zts-php +peclbuild %{__ztsphpconfig} %endif %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} @@ -186,14 +218,14 @@ 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 # Documentation for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i +do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done @@ -213,7 +245,7 @@ OPT="-n" --modules | grep %{pecl_name} %endif -%if %{with_tests} +%if %{with tests} ret=0 %global mongo_version %(mongod --version | sed -n '/db version/{s/.*v//;p}' 2>/dev/null) @@ -239,21 +271,17 @@ if [ -s server.pid ] ; then : Run the test suite echo '{"STANDALONE": "mongodb://127.0.0.1:27017"}' | tee /tmp/PHONGO-SERVERS.json - pushd NTS - TEST_PHP_EXECUTABLE=%{__php} \ + pushd %{sources} TEST_PHP_ARGS="$OPT -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ - NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ - php -n run-tests.php --show-diff || ret=1 + %{__php} -n run-tests.php -q -P --show-diff || ret=1 popd %if %{with_zts} pushd ZTS - TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_ARGS="$OPT -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ - NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ - php -n run-tests.php --show-diff || ret=1 + %{__ztsphp} -n run-tests.php -q -P --show-diff || ret=1 popd %endif @@ -268,7 +296,7 @@ exit $ret %files -%{?_licensedir:%license NTS/LICENSE} +%license %{sources}/LICENSE %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -282,11 +310,214 @@ exit $ret %changelog -* Tue Apr 8 2025 Remi Collet - 1.7.5-2 -- rebuild using bundled libraries +* Fri Feb 28 2025 Remi Collet - 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 - 1.20.1-1 +- update to 1.20.1 + +* Mon Sep 30 2024 Remi Collet - 1.20.0-2 +- EL: rebuild with system libraries + +* Tue Sep 24 2024 Remi Collet - 1.20.0-1 +- update to 1.20.0 + +* Mon Sep 9 2024 Remi Collet - 1.19.4-1 +- update to 1.19.4 + +* Tue Jul 2 2024 Remi Collet - 1.19.3-1 +- update to 1.19.3 + +* Thu Jun 6 2024 Remi Collet - 1.19.2-1 +- update to 1.19.2 (no change) +- EL-7 use bundled libbson and libmongc 1.27.2 + +* Wed May 29 2024 Remi Collet - 1.19.1-1 +- update to 1.19.1 + +* Mon May 13 2024 Remi Collet - 1.19.0-1 +- update to 1.19.0 +- raise dependency on libbson and libmongc 1.27.0 +- raise dependency on libmongocrypt 1.10.0 + +* Fri Apr 12 2024 Remi Collet - 1.18.1-1 +- update to 1.18.1 (no change) +- EL use bundled libbson and libmongc 1.26.2 + +* Thu Mar 28 2024 Remi Collet - 1.18.0-1 +- update to 1.18.0 +- EL use bundled libbson and libmongc 1.26.1 +- EL use bundled libmongocrypt 1.9.1 + +* Tue Mar 19 2024 Remi Collet - 1.17.3-1 +- update to 1.17.3 (no change) +- EL use bundled libbson and libmongc 1.25.4 +- EL use bundled libmongocrypt 1.8.4 + +* Thu Dec 21 2023 Remi Collet - 1.17.2-1 +- update to 1.17.2 + +* Wed Dec 6 2023 Remi Collet - 1.17.1-1 +- update to 1.17.1 +- EL use bundled libbson and libmongc 1.25.2 + +* Wed Nov 15 2023 Remi Collet - 1.17.0-1 +- update to 1.17.0 +- raise dependency on PHP 7.4 +- EL use bundled libbson and libmongc 1.25.1 +- EL use bundled libmongocrypt 1.8.2 +- open https://github.com/mongodb/mongo-php-driver/pull/1490 drop ICU information + +* Wed Aug 30 2023 Remi Collet - 1.16.2-2 +- rebuild for PHP 8.3.0RC1 + +* Thu Aug 17 2023 Remi Collet - 1.16.2-1 +- update to 1.16.2 + +* Thu Jul 13 2023 Remi Collet - 1.16.1-2 +- EL-8/9 rebuild with libraries in EPEL stable + +* Fri Jun 23 2023 Remi Collet - 1.16.1-1 +- update to 1.16.1 (no change) + +* Thu Jun 22 2023 Remi Collet - 1.16.0-1 +- update to 1.16.0 +- EL use bundled libbson and libmongc 1.24.1 +- EL use bundled libmongocrypt 1.8.1 + +* Sat May 13 2023 Remi Collet - 1.15.3-1 +- update to 1.15.3 +- EL-7 use bundled libbson and libmongc 1.23.4 + +* Tue Apr 25 2023 Remi Collet - 1.15.2-2 +- build out of sources tree + +* Sat Apr 22 2023 Remi Collet - 1.15.2-1 +- update to 1.15.2 (no change) +- EL-7 use bundled libbson and libmongc 1.23.3 + +* Thu Feb 9 2023 Remi Collet - 1.15.1-1 +- update to 1.15.1 +- EL-7 use bundled libbson and libmongc 1.23.2 +- cleanup spec macros +- use SPDX license ID + +* Wed Nov 23 2022 Remi Collet - 1.15.0-1 +- update to 1.15.0 +- EL-7 use bundled libbson and libmongc 1.23.1 + +* Fri Oct 21 2022 Remi Collet - 1.14.2-1 +- update to 1.14.2 +- EL-7 use bundled libmongocrypt 1.5.2 + +* Mon Sep 12 2022 Remi Collet - 1.14.1-2 +- EL-9 rebuild with libraries in EPEL stable + +* Sat Sep 10 2022 Remi Collet - 1.14.1-1 +- update to 1.14.1 + +* Wed Jul 27 2022 Remi Collet - 1.14.0-2 +- build with system libraries + +* Mon Jul 18 2022 Remi Collet - 1.14.0-1 +- update to 1.14.0 +- use bundled libmongocrypt 1.5.0 +- use bundled libbson and libmongc 1.22.0 + +* Wed Jun 8 2022 Remi Collet - 1.14.0~beta1-1 +- update to 1.14.0beta1 +- use bundled libmongocrypt 1.5.0-rc1 +- use bundled libbson and libmongc 1.22.0-beta0 + +* Thu Mar 24 2022 Remi Collet - 1.13.0-1 +- update to 1.13.0 +- with libbson and libmongoc 1.21.1 and libmongocrypt 1.3.2 + +* Wed Feb 23 2022 Remi Collet - 1.12.1-1 +- update to 1.12.1 (no change) +- with libbson and libmongoc 1.20.1 + +* Wed Dec 15 2021 Remi Collet - 1.12.0-1 +- update to 1.12.0 +- with libbson and libmongoc 1.20.0 +- with libmongocrypt 1.3.0 +- raise dependency on PHP 7.2 + +* Wed Nov 3 2021 Remi Collet - 1.11.1-1 +- update to 1.11.1 (no change) + +* Sat Oct 30 2021 Remi Collet - 1.11.0-1 +- update to 1.11.0 +- with libbson and libmongoc 1.19.1 + +* Wed Sep 29 2021 Remi Collet - 1.11.0~alpha1-2 +- rebuild using ICU 69 + +* Tue Sep 14 2021 Remi Collet - 1.11.0~alpha1-1 +- update to 1.11.0alpha1 +- with libbson and libmongoc 1.19.0 +- drop patch merged upstream + +* Wed Sep 01 2021 Remi Collet - 1.10.0-4 +- rebuild for 8.1.0RC1 + +* Thu Aug 5 2021 Remi Collet - 1.10.0-3 +- rebuild with system library on EL-8 + +* Fri Jul 23 2021 Remi Collet - 1.10.0-2 +- add patch for PHP 8.1.0beta1 from + https://github.com/mongodb/mongo-php-driver/pull/1240 + +* Wed Jul 14 2021 Remi Collet - 1.10.0-1 +- update to 1.10.0 +- with libbson and libmongoc 1.18.0 +- with libmongocrypt 1.2.1 +- raise dependency on PHP 7.1 + +* Fri Apr 9 2021 Remi Collet - 1.10.0~alpha1-1 +- update to 1.10.0alpha1 +- with libbson and libmongoc 1.18.0alpha +- with libmongocrypt 1.2.1dev + +* Wed Apr 7 2021 Remi Collet - 1.9.1-1 +- update to 1.9.1 +- with libbson and libmongoc 1.17.4 + +* Wed Nov 25 2020 Remi Collet - 1.9.0-1 +- update to 1.9.0 (stable) + +* Wed Nov 11 2020 Remi Collet - 1.9.0~RC1-1 +- update to 1.9.0RC1 (beta) + +* Thu Nov 5 2020 Remi Collet - 1.8.2-1 +- update to 1.8.2 (no change) +- with libbson and libmongoc 1.17.2 +- with libmongocrypt 1.0.4 + +* Tue Oct 6 2020 Remi Collet - 1.8.1-1 +- update to 1.8.1 + +* Thu Aug 27 2020 Remi Collet - 1.8.0-2 +- rebuild with system library on EL-8 + +* Fri Jul 31 2020 Remi Collet - 1.8.0-1 +- update to 1.8.0 +- with libbson and libmongoc 1.17.0 + +* Fri Jul 17 2020 Remi Collet - 1.8.0~rc1-1 +- update to 1.8.0RC1 +- with libbson and libmongoc 1.17.0-rc0 + +* Thu Jun 11 2020 Remi Collet - 1.8.0~beta2-1 +- update to 1.8.0beta2 +- with libbson and libmongoc 1.17.0-beta2 -* Wed Jul 8 2020 Remi Collet - 1.7.5-1 -- update to 1.7.5 +* Wed Apr 15 2020 Remi Collet - 1.8.0~beta1-1 +- update to 1.8.0beta1 +- with libbson and libmongoc 1.17.0-beta * Wed Mar 11 2020 Remi Collet - 1.7.4-1 - update to 1.7.4 (no change) -- cgit