summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore9
-rw-r--r--Makefile4
-rw-r--r--PHPINFO27
-rw-r--r--REFLECTION3517
-rw-r--r--php-pecl-mongodb2.spec562
5 files changed, 4119 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..01f0400
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+clog
+package-*.xml
+*.tgz
+*.tar.bz2
+*.tar.gz
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..13af741
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../../common/Makefile
+
diff --git a/PHPINFO b/PHPINFO
new file mode 100644
index 0000000..3feefbc
--- /dev/null
+++ b/PHPINFO
@@ -0,0 +1,27 @@
+
+mongodb
+
+MongoDB support => enabled
+MongoDB extension version => 1.7.5
+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
+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 compression => enabled
+libmongoc compression snappy => enabled
+libmongoc compression zlib => enabled
+libmongocrypt headers version => 1.0.4
+libmongocrypt library version => 1.0.4
+libmongocrypt crypto => enabled
+libmongocrypt crypto library => libcrypto
+
+Directive => Local Value => Master Value
+mongodb.debug => no value => no value
diff --git a/REFLECTION b/REFLECTION
new file mode 100644
index 0000000..1c3facd
--- /dev/null
+++ b/REFLECTION
@@ -0,0 +1,3517 @@
+Extension [ <persistent> extension #70 mongodb version 1.7.5 ] {
+
+ - Dependencies {
+ Dependency [ date (Required) ]
+ Dependency [ json (Required) ]
+ Dependency [ spl (Required) ]
+ Dependency [ standard (Required) ]
+ }
+
+ - INI {
+ Entry [ mongodb.debug <ALL> ]
+ Current = ''
+ }
+ }
+
+ - Constants [2] {
+ Constant [ string MONGODB_VERSION ] { 1.7.5 }
+ Constant [ string MONGODB_STABILITY ] { stable }
+ }
+
+ - Functions {
+ Function [ <internal:mongodb> function MongoDB\BSON\fromPHP ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
+ }
+ }
+ Function [ <internal:mongodb> function MongoDB\BSON\toPHP ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $bson ]
+ Parameter #1 [ <optional> array $typemap ]
+ }
+ }
+ Function [ <internal:mongodb> function MongoDB\BSON\toJSON ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $bson ]
+ }
+ }
+ Function [ <internal:mongodb> function MongoDB\BSON\toCanonicalExtendedJSON ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $bson ]
+ }
+ }
+ Function [ <internal:mongodb> function MongoDB\BSON\toRelaxedExtendedJSON ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $bson ]
+ }
+ }
+ Function [ <internal:mongodb> function MongoDB\BSON\fromJSON ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $json ]
+ }
+ }
+ Function [ <internal:mongodb> function MongoDB\Driver\Monitoring\addSubscriber ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> MongoDB\Driver\Monitoring\Subscriber $subscriber ]
+ }
+ }
+ Function [ <internal:mongodb> function MongoDB\Driver\Monitoring\removeSubscriber ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> MongoDB\Driver\Monitoring\Subscriber $subscriber ]
+ }
+ }
+ }
+
+ - Classes [62] {
+ Interface [ <internal:mongodb> interface MongoDB\BSON\Type ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\Serializable extends MongoDB\BSON\Type ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:mongodb> abstract public method bsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\Unserializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:mongodb> abstract public method bsonUnserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $data ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\BinaryInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:mongodb> abstract public method getData ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method getType ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\Decimal128Interface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:mongodb> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\JavascriptInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:mongodb> abstract public method getCode ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method getScope ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\MaxKeyInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\MinKeyInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\ObjectIdInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:mongodb> abstract public method getTimestamp ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\RegexInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:mongodb> abstract public method getFlags ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method getPattern ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\TimestampInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:mongodb> abstract public method getIncrement ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method getTimestamp ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\BSON\UTCDateTimeInterface ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:mongodb> abstract public method toDateTime ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Binary implements MongoDB\BSON\BinaryInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - 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 }
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [7] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $data ]
+ Parameter #1 [ <required> $type ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\BinaryInterface> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\BinaryInterface> final public method getData ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\BinaryInterface> final public method getType ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\DBPointer implements JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Decimal128 implements MongoDB\BSON\Decimal128Interface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\Decimal128Interface> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Int64 implements JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Javascript implements MongoDB\BSON\JavascriptInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [7] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $javascript ]
+ Parameter #1 [ <optional> $scope ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\JavascriptInterface> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\JavascriptInterface> final public method getCode ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\JavascriptInterface> final public method getScope ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\MaxKey implements MongoDB\BSON\MaxKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\MinKey implements MongoDB\BSON\MinKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\ObjectId implements MongoDB\BSON\ObjectIdInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [6] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> $id ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\ObjectIdInterface> final public method getTimestamp ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\ObjectIdInterface> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> 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 [ <internal:mongodb, inherits MongoDB\BSON\Unserializable> abstract public method bsonUnserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $data ]
+ }
+ }
+
+ Method [ <internal:mongodb, inherits MongoDB\BSON\Serializable> abstract public method bsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Regex implements MongoDB\BSON\RegexInterface, MongoDB\BSON\Type, Serializable, JsonSerializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [7] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $pattern ]
+ Parameter #1 [ <required> $flags ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\RegexInterface> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\RegexInterface> final public method getPattern ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\RegexInterface> final public method getFlags ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Symbol implements JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Timestamp implements MongoDB\BSON\TimestampInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [7] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $increment ]
+ Parameter #1 [ <required> $timestamp ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\TimestampInterface> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\TimestampInterface> final public method getIncrement ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\TimestampInterface> final public method getTimestamp ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\Undefined implements JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\BSON\UTCDateTime implements MongoDB\BSON\UTCDateTimeInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [6] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> $milliseconds ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\UTCDateTimeInterface> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\UTCDateTimeInterface> final public method toDateTime ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\Driver\CursorInterface extends Traversable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb> abstract public method getId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method getServer ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method isDead ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method setTypeMap ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $typemap ]
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method toArray ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\BulkWrite implements Countable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [6] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> array or NULL $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method insert ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $document ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method update ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $query ]
+ Parameter #1 [ <required> $newObj ]
+ Parameter #2 [ <optional> array or NULL $updateOptions ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method delete ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $query ]
+ Parameter #1 [ <optional> array or NULL $deleteOptions ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Countable> final public method count ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> 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 [ <internal:mongodb> final public method createDataKey ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $kmsProvider ]
+ Parameter #1 [ <optional> array or NULL $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method encrypt ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $value ]
+ Parameter #1 [ <optional> array or NULL $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method decrypt ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> MongoDB\BSON\BinaryInterface $keyVaultClient ]
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Command ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $document ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> <iterateable> final class MongoDB\Driver\Cursor implements MongoDB\Driver\CursorInterface, Traversable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [7] {
+ Method [ <internal:mongodb, prototype MongoDB\Driver\CursorInterface> final public method setTypeMap ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $typemap ]
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\Driver\CursorInterface> final public method toArray ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\Driver\CursorInterface> final public method getId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\Driver\CursorInterface> final public method getServer ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\Driver\CursorInterface> final public method isDead ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\CursorId implements Serializable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb> final public method __toString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Manager ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [15] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $uri ]
+ Parameter #1 [ <optional> array $options ]
+ Parameter #2 [ <optional> array $driverOptions ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method createClientEncryption ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeReadCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> array $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeWriteCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> array $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeReadWriteCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeQuery ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $namespace ]
+ Parameter #1 [ <required> MongoDB\Driver\Query $zquery ]
+ Parameter #2 [ <optional> $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeBulkWrite ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $namespace ]
+ Parameter #1 [ <required> MongoDB\Driver\BulkWrite $zbulk ]
+ Parameter #2 [ <optional> $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getReadConcern ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getReadPreference ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getServers ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getWriteConcern ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method selectServer ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> MongoDB\Driver\ReadPreference or NULL $readPreference ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method startSession ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> array or NULL $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Query ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $filter ]
+ Parameter #1 [ <optional> array or NULL $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\ReadConcern implements MongoDB\BSON\Serializable, 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 }
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [6] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> $level ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getLevel ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isDefault ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> 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 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 }
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [8] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $mode ]
+ Parameter #1 [ <optional> array or NULL $tagSets ]
+ Parameter #2 [ <optional> array or NULL $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getMaxStalenessSeconds ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getMode ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getModeString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getTagSets ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Server ] {
+
+ - 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 }
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [19] {
+ Method [ <internal:mongodb> final public method executeCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeReadCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> array $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeWriteCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> array $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeReadWriteCommand ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $db ]
+ Parameter #1 [ <required> MongoDB\Driver\Command $command ]
+ Parameter #2 [ <optional> array $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeQuery ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $namespace ]
+ Parameter #1 [ <required> MongoDB\Driver\Query $zquery ]
+ Parameter #2 [ <optional> $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method executeBulkWrite ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $namespace ]
+ Parameter #1 [ <required> MongoDB\Driver\BulkWrite $zbulk ]
+ Parameter #2 [ <optional> $options ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getHost ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getTags ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getLatency ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getPort ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getType ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isPrimary ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isSecondary ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isArbiter ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isHidden ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isPassive ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> 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 [ <internal:mongodb> final public method abortTransaction ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method advanceClusterTime ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $clusterTime ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method advanceOperationTime ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $timestamp ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method commitTransaction ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method endSession ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getClusterTime ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getLogicalSessionId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getOperationTime ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getServer ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getTransactionOptions ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getTransactionState ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isInTransaction ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method startTransaction ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> array or NULL $options ]
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> 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 [ <internal:mongodb> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $properties ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [8] {
+ Method [ <internal:mongodb, ctor> final public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $w ]
+ Parameter #1 [ <optional> $wtimeout ]
+ Parameter #2 [ <optional> $journal ]
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getW ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getWtimeout ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getJournal ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isDefault ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method serialize ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $serialized ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\WriteConcernError ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:mongodb> final public method getCode ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\WriteError ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [6] {
+ Method [ <internal:mongodb> final public method getCode ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getIndex ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\WriteResult ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [12] {
+ Method [ <internal:mongodb> final public method getInsertedCount ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getMatchedCount ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getModifiedCount ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getDeletedCount ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getUpsertedCount ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getServer ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getUpsertedIds ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getWriteConcernError ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getWriteErrors ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method isAcknowledged ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\Driver\Exception\Exception extends Throwable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [8] {
+ Method [ <internal:Core, inherits Throwable> abstract public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Throwable> abstract public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Throwable> abstract public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Throwable> abstract public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Throwable> abstract public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Throwable> abstract public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Throwable> abstract public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Throwable> abstract public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\ServerException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\ConnectionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\ServerException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [6] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ Property [ <default> protected $writeResult ]
+ }
+
+ - Methods [12] {
+ Method [ <internal:mongodb> final public method getWriteResult ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements MongoDB\Driver\Exception\Exception, Throwable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [6] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ Property [ <default> protected $writeResult ]
+ }
+
+ - Methods [12] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\WriteException> final public method getWriteResult ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\CommandException extends MongoDB\Driver\Exception\ServerException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [6] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ Property [ <default> protected $resultDocument ]
+ }
+
+ - Methods [12] {
+ Method [ <internal:mongodb> final public method getResultDocument ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\EncryptionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Exception\ExecutionTimeoutException extends MongoDB\Driver\Exception\ServerException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [4] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ }
+
+ - Methods [10] {
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\LogicException extends LogicException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [4] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ }
+
+ - Methods [10] {
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Exception\SSLConnectionException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ Property [ <default> protected $errorLabels ]
+ }
+
+ - Methods [11] {
+ Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\RuntimeException> final public method hasErrorLabel ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $label ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, MongoDB\Driver\Exception\Exception ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [4] {
+ Property [ <default> protected $message ]
+ Property [ <default> protected $code ]
+ Property [ <default> protected $file ]
+ Property [ <default> protected $line ]
+ }
+
+ - Methods [10] {
+ Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $message ]
+ Parameter #1 [ <optional> $code ]
+ Parameter #2 [ <optional> $previous ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ }
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\Driver\Monitoring\Subscriber ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Interface [ <internal:mongodb> interface MongoDB\Driver\Monitoring\CommandSubscriber extends MongoDB\Driver\Monitoring\Subscriber ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:mongodb> abstract public method commandStarted ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> MongoDB\Driver\Monitoring\CommandStartedEvent $event ]
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method commandSucceeded ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> MongoDB\Driver\Monitoring\CommandSucceededEvent $event ]
+ }
+ }
+
+ Method [ <internal:mongodb> abstract public method commandFailed ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> MongoDB\Driver\Monitoring\CommandFailedEvent $event ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Monitoring\CommandFailedEvent ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getCommandName ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getError ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getDurationMicros ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getOperationId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getReply ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getRequestId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getServer ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Monitoring\CommandStartedEvent ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [8] {
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getCommand ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getCommandName ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getDatabaseName ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getOperationId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getRequestId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getServer ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:mongodb> final class MongoDB\Driver\Monitoring\CommandSucceededEvent ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [8] {
+ Method [ <internal:mongodb, ctor> final private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getCommandName ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getDurationMicros ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getOperationId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getReply ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getRequestId ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method getServer ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:mongodb> final public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+ }
+}
+
diff --git a/php-pecl-mongodb2.spec b/php-pecl-mongodb2.spec
new file mode 100644
index 0000000..3a60caa
--- /dev/null
+++ b/php-pecl-mongodb2.spec
@@ -0,0 +1,562 @@
+# 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/
+#
+# 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 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})
+%else
+%global with_syslib 0
+%global libmongo 1.16.2
+%global libcrypt 1.0.3
+%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
+Version: %{upstream_version}%{?upstream_lower}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+License: ASL 2.0
+URL: https://pecl.php.net/package/%{pecl_name}
+Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+
+BuildRequires: %{?dtsprefix}gcc
+BuildRequires: %{?scl_prefix}php-devel > 5.6
+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}
+%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}
+%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
+
+
+%description
+The purpose of this driver is to provide exceptionally thin glue between
+MongoDB and PHP, implementing only fundemental and performance-critical
+components necessary to build a fully-functional MongoDB driver.
+
+Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
+
+
+%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"/' } \
+ -i package.xml
+
+cd NTS
+# 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 ..
+
+%if %{with_zts}
+# Duplicate source tree for NTS / ZTS build
+cp -pr NTS ZTS
+%endif
+
+# Create configuration file
+cat << 'EOF' | tee %{ini_name}
+; Enable %{summary} extension module
+extension=%{pecl_name}.so
+
+; Configuration
+;mongodb.debug=''
+EOF
+
+
+%build
+%{?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 \
+ --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-sasl=cyrus \
+ --with-mongodb-icu=yes \
+ --with-mongodb-ssl=openssl \
+ --enable-mongodb
+%endif
+
+ make %{?_smp_mflags}
+}
+
+cd NTS
+peclbuild php
+
+%if %{with_zts}
+cd ../ZTS
+peclbuild zts-php
+%endif
+
+
+%install
+%{?dtsenable}
+
+make -C NTS install INSTALL_ROOT=%{buildroot}
+
+# install config file
+install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
+
+# Install XML package description
+install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
+
+%if %{with_zts}
+make -C ZTS install INSTALL_ROOT=%{buildroot}
+
+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
+done
+
+
+%check
+OPT="-n"
+[ -f %{php_extdir}/json.so ] && OPT="$OPT -d extension=json.so"
+
+: Minimal load test for NTS extension
+%{__php} $OPT \
+ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
+ --modules | grep %{pecl_name}
+
+%if %{with_zts}
+: Minimal load test for ZTS extension
+%{__ztsphp} $OPT \
+ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
+ --modules | grep %{pecl_name}
+%endif
+
+%if %{with_tests}
+ret=0
+
+%global mongo_version %(mongod --version | sed -n '/db version/{s/.*v//;p}' 2>/dev/null)
+#global mongo_version 4
+
+: Run a mongodb server version %{mongo_version}
+mkdir dbtest
+mongod \
+ --journal \
+ --bind_ip 127.0.0.1 \
+ --unixSocketPrefix /tmp \
+ --logpath $PWD/server.log \
+ --pidfilepath $PWD/server.pid \
+ --dbpath $PWD/dbtest \
+ --fork || : skip test as server cant start
+
+if [ -s server.pid ] ; then
+ : Drop known to fail tests
+%if "%{mongo_version}" < "3.4"
+ ### With mongodb 3.2
+%endif
+
+ : Run the test suite
+ echo '{"STANDALONE": "mongodb://127.0.0.1:27017"}' | tee /tmp/PHONGO-SERVERS.json
+
+ pushd NTS
+ TEST_PHP_EXECUTABLE=%{__php} \
+ 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
+ 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
+ popd
+%endif
+
+ : Cleanup
+ kill $(cat server.pid)
+fi
+
+exit $ret
+%else
+: check disabled, missing '--with tests' option
+%endif
+
+
+%files
+%{?_licensedir:%license NTS/LICENSE}
+%doc %{pecl_docdir}/%{pecl_name}
+%{pecl_xmldir}/%{name}.xml
+
+%config(noreplace) %{php_inidir}/%{ini_name}
+%{php_extdir}/%{pecl_name}.so
+
+%if %{with_zts}
+%config(noreplace) %{php_ztsinidir}/%{ini_name}
+%{php_ztsextdir}/%{pecl_name}.so
+%endif
+
+
+%changelog
+* Tue Apr 8 2025 Remi Collet <remi@remirepo.net> - 1.7.5-2
+- rebuild using bundled libraries
+
+* Wed Jul 8 2020 Remi Collet <remi@remirepo.net> - 1.7.5-1
+- update to 1.7.5
+
+* Wed Mar 11 2020 Remi Collet <remi@remirepo.net> - 1.7.4-1
+- update to 1.7.4 (no change)
+
+* Tue Feb 25 2020 Remi Collet <remi@remirepo.net> - 1.7.3-1
+- update to 1.7.3 (no change)
+- with libbson and libmongoc 1.16.2
+
+* Thu Feb 13 2020 Remi Collet <remi@remirepo.net> - 1.7.2-1
+- update to 1.7.2 (no change)
+- with libmongocrypt 1.0.3
+
+* Wed Feb 5 2020 Remi Collet <remi@remirepo.net> - 1.7.1-1
+- update to 1.7.1 (no change)
+- drop patch merged upstream
+
+* Tue Feb 4 2020 Remi Collet <remi@remirepo.net> - 1.7.0-1
+- update to 1.7.0
+- with libbson and libmongoc 1.16.1
+- with libmongocrypt 1.0.1
+- fix build with system libraries using patch from
+ https://github.com/mongodb/mongo-php-driver/pull/1095
+
+* Fri Dec 6 2019 Remi Collet <remi@remirepo.net> - 1.6.1-1
+- update to 1.6.1
+
+* Mon Sep 9 2019 Remi Collet <remi@remirepo.net> - 1.6.0-1
+- update to 1.6.0
+
+* Tue Sep 03 2019 Remi Collet <remi@remirepo.net> - 1.6.0~rc1-2
+- rebuild for 7.4.0RC1
+
+* Mon Sep 2 2019 Remi Collet <remi@remirepo.net> - 1.6.0~rc1-1
+- update to 1.6.0RC1
+
+* Thu Aug 22 2019 Remi Collet <remi@remirepo.net> - 1.6.0~alpha3-1
+- update to 1.6.0alpha3
+- with libbson and libmongoc 1.15.0
+- ensure proper library version is required
+- raise minimal PHP version to 5.6
+
+* Tue Jul 23 2019 Remi Collet <remi@remirepo.net> - 1.6.0~alpha2-2
+- rebuild for 7.4.0beta1
+
+* Tue Jun 4 2019 Remi Collet <remi@remirepo.net> - 1.6.0~alpha2-1
+- update to 1.6.0alpha2
+- with libbson and libmongoc 1.14.0
+
+* Thu Mar 7 2019 Remi Collet <remi@remirepo.net> - 1.6.0~alpha1-2
+- rebuild with libicu62
+
+* Mon Dec 3 2018 Remi Collet <remi@remirepo.net> - 1.6.0~alpha1-1
+- update to 1.6.0alpha1
+
+* Sat Dec 1 2018 Remi Collet <remi@remirepo.net> - 1.5.3-2
+- EL-8 build (using bundled libmongc for now)
+
+* Fri Sep 21 2018 Remi Collet <remi@remirepo.net> - 1.5.3-1
+- update to 1.5.3
+- with libbson and libmongoc 1.13.0
+
+* Thu Aug 16 2018 Remi Collet <remi@remirepo.net> - 1.5.2-2
+- rebuild for 7.3.0beta2 new ABI
+
+* Wed Aug 8 2018 Remi Collet <remi@remirepo.net> - 1.5.2-1
+- update to 1.5.2
+
+* Tue Jul 17 2018 Remi Collet <remi@remirepo.net> - 1.5.1-2
+- rebuld for 7.3.0alpha4 new ABI
+
+* Mon Jul 9 2018 Remi Collet <remi@remirepo.net> - 1.5.1-1
+- update to 1.5.1
+
+* Tue Jun 26 2018 Remi Collet <remi@remirepo.net> - 1.5.0-1
+- update to 1.5.0
+- with libbson and libmongoc 1.11.0
+- add dependency on icu
+
+* Thu Jun 7 2018 Remi Collet <remi@remirepo.net> - 1.4.4-1
+- update to 1.4.4
+
+* Thu Apr 19 2018 Remi Collet <remi@remirepo.net> - 1.4.3-1
+- update to 1.4.3
+- with libbson and libmongoc 1.9.4
+
+* Wed Mar 7 2018 Remi Collet <remi@remirepo.net> - 1.4.2-1
+- Update to 1.4.2 (no change)
+- with libbson and libmongoc 1.9.3
+
+* Wed Feb 21 2018 Remi Collet <remi@remirepo.net> - 1.4.1-1
+- Update to 1.4.1 (stable)
+- disable test suite because of #1547618
+
+* Fri Feb 9 2018 Remi Collet <remi@remirepo.net> - 1.4.0-1
+- Update to 1.4.0 (stable)
+
+* Wed Feb 7 2018 Remi Collet <remi@remirepo.net> - 1.4.0~rc2-1
+- Update to 1.4.0RC2
+
+* Fri Dec 22 2017 Remi Collet <remi@remirepo.net> - 1.4.0~rc1-1
+- Update to 1.4.0RC1
+- with libbson and libmongoc 1.9.2
+
+* Fri Dec 22 2017 Remi Collet <remi@remirepo.net> - 1.4.0~beta1-1
+- Update to 1.4.0beta1
+- with libbson and libmongoc 1.9.0
+
+* Sun Dec 3 2017 Remi Collet <remi@remirepo.net> - 1.3.4-1
+- Update to 1.3.4
+
+* Wed Nov 22 2017 Remi Collet <remi@remirepo.net> - 1.3.3-1
+- Update to 1.3.3 (stable)
+- with libbson and libmongoc 1.8.2
+
+* Tue Oct 31 2017 Remi Collet <remi@remirepo.net> - 1.3.2-1
+- Update to 1.3.2
+
+* Tue Oct 17 2017 Remi Collet <remi@remirepo.net> - 1.3.1-1
+- Update to 1.3.1 (stable)
+- with libbson and libmongoc 1.8.1
+
+* Wed Sep 20 2017 Remi Collet <remi@remirepo.net> - 1.3.0-1
+- update to 1.3.0 (stable)
+- with libbson and libmongoc 1.8.0
+
+* Fri Sep 15 2017 Remi Collet <remi@remirepo.net> - 1.3.0~RC1-1
+- update to 1.3.0RC1
+- raise dependency on libbson and mongo-c-driver 1.8.0
+- raise dependency on PHP 5.5
+
+* Wed Aug 23 2017 Remi Collet <remi@remirepo.net> - 1.3.0~beta1-2
+- add patch for upcoming PHP 7.2.0RC1 and new timelib from
+ https://github.com/mongodb/mongo-php-driver/pull/633
+
+* Fri Aug 11 2017 Remi Collet <remi@remirepo.net> - 1.3.0~beta1-1
+- update to 1.3.0beta1
+- raise dependency on libbson and mongo-c-driver 1.7.0
+
+* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 1.2.9-4
+- rebuild for PHP 7.2.0beta1 new API
+
+* Wed Jun 21 2017 Remi Collet <remi@remirepo.net> - 1.2.9-3
+- rebuild for 7.2.0alpha2
+
+* Tue May 30 2017 Remi Collet <remi@remirepo.net> - 1.2.9-2
+- rebuild (for 7.2)
+
+* Thu May 4 2017 Remi Collet <remi@remirepo.net> - 1.2.9-1
+- Update to 1.2.9
+
+* Mon Mar 20 2017 Remi Collet <remi@remirepo.net> - 1.2.8-1
+- Update to 1.2.8
+
+* Wed Mar 15 2017 Remi Collet <remi@remirepo.net> - 1.2.7-1
+- Update to 1.2.7
+
+* Wed Mar 8 2017 Remi Collet <remi@remirepo.net> - 1.2.6-1
+- Update to 1.2.6
+
+* Wed Feb 01 2017 Remi Collet <remi@fedoraproject.org> - 1.2.5-1
+- Update to 1.2.5
+
+* Tue Jan 31 2017 Remi Collet <remi@fedoraproject.org> - 1.2.4-1
+- Update to 1.2.4
+
+* Wed Jan 18 2017 Remi Collet <remi@fedoraproject.org> - 1.2.3-1
+- Update to 1.2.3
+
+* Wed Dec 14 2016 Remi Collet <remi@fedoraproject.org> - 1.2.2-1
+- Update to 1.2.2
+
+* Thu Dec 8 2016 Remi Collet <remi@fedoraproject.org> - 1.2.1-1
+- Update to 1.2.1
+
+* Thu Dec 1 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-2
+- rebuild with PHP 7.1.0 GA
+
+* Tue Nov 29 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-1
+- update to 1.2.0
+- internal dependency on date, json, spl and standard
+
+* Wed Sep 28 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.2.alpha3
+- update to 1.2.0alpha3
+- use bundled libbson and libmongoc
+
+* Mon Aug 8 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.1.alpha1
+- update to 1.2.0alpha1
+- open https://jira.mongodb.org/browse/PHPC-762 missing symbols
+
+* Tue Jul 19 2016 Remi Collet <remi@fedoraproject.org> - 1.1.8-4
+- License is ASL 2.0, from review #1269056
+
+* Wed Jul 06 2016 Remi Collet <remi@fedoraproject.org> - 1.1.8-2
+- Update to 1.1.8
+
+* Fri Jun 3 2016 Remi Collet <remi@fedoraproject.org> - 1.1.7-3
+- run the test suite during the build (x86_64 only)
+- ignore known to fail tests
+
+* Thu Jun 2 2016 Remi Collet <remi@fedoraproject.org> - 1.1.7-2
+- Update to 1.1.7
+
+* Thu Apr 7 2016 Remi Collet <remi@fedoraproject.org> - 1.1.6-2
+- Update to 1.1.6
+
+* Thu Mar 31 2016 Remi Collet <remi@fedoraproject.org> - 1.1.5-4
+- load after smbclient to workaround
+ https://jira.mongodb.org/browse/PHPC-658
+
+* Fri Mar 18 2016 Remi Collet <remi@fedoraproject.org> - 1.1.5-2
+- Update to 1.1.5 (stable)
+
+* Thu Mar 10 2016 Remi Collet <remi@fedoraproject.org> - 1.1.4-2
+- Update to 1.1.4 (stable)
+
+* Sat Mar 5 2016 Remi Collet <remi@fedoraproject.org> - 1.1.3-2
+- Update to 1.1.3 (stable)
+
+* Thu Jan 07 2016 Remi Collet <remi@fedoraproject.org> - 1.1.2-2
+- Update to 1.1.2 (stable)
+
+* Thu Dec 31 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-4
+- fix patch for 32bits build
+ open https://github.com/mongodb/mongo-php-driver/pull/191
+
+* Sat Dec 26 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-2
+- Update to 1.1.1 (stable)
+- add patch for 32bits build,
+ open https://github.com/mongodb/mongo-php-driver/pull/185
+
+* Wed Dec 16 2015 Remi Collet <remi@fedoraproject.org> - 1.1.0-1
+- Update to 1.1.0 (stable)
+- raise dependency on libmongoc >= 1.3.0
+
+* Tue Dec 8 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-2
+- update to 1.0.1 (stable)
+- ensure libmongoc >= 1.2.0 and < 1.3 is used
+
+* Fri Oct 30 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-2
+- update to 1.0.0 (stable)
+
+* Tue Oct 27 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.5.RC0
+- Update to 1.0.0RC0 (beta)
+
+* Tue Oct 6 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.3-beta2
+- Update to 1.0.0beta2 (beta)
+
+* Fri Sep 11 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.2-beta1
+- Update to 1.0.0beta1 (beta)
+
+* Mon Aug 31 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.1.alpha2
+- Update to 1.0.0alpha2 (alpha)
+- buid with system libmongoc
+
+* Thu May 07 2015 Remi Collet <remi@fedoraproject.org> - 0.6.3-1
+- Update to 0.6.3 (alpha)
+
+* Wed May 06 2015 Remi Collet <remi@fedoraproject.org> - 0.6.2-1
+- Update to 0.6.2 (alpha)
+
+* Wed May 06 2015 Remi Collet <remi@fedoraproject.org> - 0.6.0-1
+- Update to 0.6.0 (alpha)
+
+* Sat Apr 25 2015 Remi Collet <remi@fedoraproject.org> - 0.5.1-1
+- Update to 0.5.1 (alpha)
+
+* Thu Apr 23 2015 Remi Collet <remi@fedoraproject.org> - 0.5.0-2
+- build with system libbson
+- open https://jira.mongodb.org/browse/PHPC-259
+
+* Wed Apr 22 2015 Remi Collet <remi@fedoraproject.org> - 0.5.0-1
+- initial package, version 0.5.0 (alpha)
+