From f87ed4f50004b4f6c261aeb62284204f990a25ab Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Aug 2017 07:20:58 +0200 Subject: v1.3.0beta1 --- REFLECTION | 1074 ++++++++++++++++++++++++++++++++++++++----------- php-pecl-mongodb.spec | 44 +- 2 files changed, 849 insertions(+), 269 deletions(-) diff --git a/REFLECTION b/REFLECTION index aa9f834..98a72d5 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #170 mongodb version 1.2.9 ] { +Extension [ extension #175 mongodb version 1.3.0beta1 ] { - Dependencies { Dependency [ date (Required) ] @@ -14,8 +14,8 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } - Constants [2] { - Constant [ string MONGODB_VERSION ] { 1.2.9 } - Constant [ string MONGODB_STABILITY ] { stable } + Constant [ string MONGODB_VERSION ] { 1.3.0beta1 } + Constant [ string MONGODB_STABILITY ] { beta } } - Functions { @@ -27,8 +27,9 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } Function [ function MongoDB\BSON\toPHP ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ $bson ] + Parameter #1 [ array $typemap ] } } Function [ function MongoDB\BSON\toJSON ] { @@ -37,15 +38,39 @@ Extension [ extension #170 mongodb version 1.2.9 ] { Parameter #0 [ $bson ] } } + Function [ function MongoDB\BSON\toCanonicalExtendedJSON ] { + + - Parameters [1] { + Parameter #0 [ $bson ] + } + } + Function [ function MongoDB\BSON\toRelaxedExtendedJSON ] { + + - Parameters [1] { + Parameter #0 [ $bson ] + } + } Function [ function MongoDB\BSON\fromJSON ] { - Parameters [1] { Parameter #0 [ $json ] } } + Function [ function MongoDB\Driver\Monitoring\addSubscriber ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\Subscriber $subscriber ] + } + } + Function [ function MongoDB\Driver\Monitoring\removeSubscriber ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\Subscriber $subscriber ] + } + } } - - Classes [38] { + - Classes [53] { Interface [ interface MongoDB\BSON\Type ] { - Constants [0] { @@ -111,7 +136,136 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Interface [ interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { + Interface [ interface MongoDB\BSON\BinaryInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ abstract public method getData ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getType ] { + + - Parameters [0] { + } + } + + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface MongoDB\BSON\Decimal128Interface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [1] { + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface MongoDB\BSON\JavascriptInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ abstract public method getCode ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getScope ] { + + - Parameters [0] { + } + } + + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface MongoDB\BSON\MaxKeyInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface MongoDB\BSON\MinKeyInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface MongoDB\BSON\ObjectIDInterface ] { - Constants [0] { } @@ -126,14 +280,112 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } - Methods [2] { - Method [ abstract public method bsonUnserialize ] { + Method [ abstract public method getTimestamp ] { - - Parameters [1] { - Parameter #0 [ array $data ] + - Parameters [0] { } } - Method [ abstract public method bsonSerialize ] { + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface MongoDB\BSON\RegexInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ abstract public method getFlags ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getPattern ] { + + - Parameters [0] { + } + } + + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface MongoDB\BSON\TimestampInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ abstract public method getIncrement ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getTimestamp ] { + + - Parameters [0] { + } + } + + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface MongoDB\BSON\UTCDateTimeInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ abstract public method toDateTime ] { + + - Parameters [0] { + } + } + + Method [ abstract public method __toString ] { - Parameters [0] { } @@ -141,7 +393,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\Binary implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Binary implements MongoDB\BSON\BinaryInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [7] { Constant [ integer TYPE_GENERIC ] { 0 } @@ -177,7 +429,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method __toString ] { + Method [ final public method __toString ] { - Parameters [0] { } @@ -202,13 +454,13 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method getData ] { + Method [ final public method getData ] { - Parameters [0] { } } - Method [ final public method getType ] { + Method [ final public method getType ] { - Parameters [0] { } @@ -216,7 +468,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\Decimal128 implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Decimal128 implements MongoDB\BSON\Decimal128Interface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -244,7 +496,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method __toString ] { + Method [ final public method __toString ] { - Parameters [0] { } @@ -271,7 +523,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\Javascript implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Javascript implements MongoDB\BSON\JavascriptInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -300,7 +552,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method __toString ] { + Method [ final public method __toString ] { - Parameters [0] { } @@ -325,13 +577,13 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method getCode ] { + Method [ final public method getCode ] { - Parameters [0] { } } - Method [ final public method getScope ] { + Method [ final public method getScope ] { - Parameters [0] { } @@ -339,7 +591,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\MaxKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\MaxKey implements MongoDB\BSON\MaxKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -381,7 +633,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\MinKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\MinKey implements MongoDB\BSON\MinKeyInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -423,7 +675,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\ObjectID implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\ObjectID implements MongoDB\BSON\ObjectIDInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -451,13 +703,13 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method getTimestamp ] { + Method [ final public method getTimestamp ] { - Parameters [0] { } } - Method [ final public method __toString ] { + Method [ final public method __toString ] { - Parameters [0] { } @@ -484,7 +736,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\Regex implements MongoDB\BSON\Type, Serializable, JsonSerializable ] { + Interface [ interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - Constants [0] { } @@ -492,28 +744,58 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Static properties [0] { } - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } + - Static methods [0] { } - Properties [0] { } - - Methods [7] { - Method [ final public method __construct ] { + - Methods [2] { + Method [ abstract public method bsonUnserialize ] { - - Parameters [2] { - Parameter #0 [ $pattern ] - Parameter #1 [ $flags ] + - Parameters [1] { + Parameter #0 [ array $data ] } } - Method [ final public method __toString ] { + Method [ abstract public method bsonSerialize ] { + + - Parameters [0] { + } + } + } + } + + Class [ final class MongoDB\BSON\Regex implements MongoDB\BSON\RegexInterface, MongoDB\BSON\Type, Serializable, JsonSerializable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } + } + + - Properties [0] { + } + + - Methods [7] { + Method [ final public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $pattern ] + Parameter #1 [ $flags ] + } + } + + Method [ final public method __toString ] { - Parameters [0] { } @@ -538,13 +820,13 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method getPattern ] { + Method [ final public method getPattern ] { - Parameters [0] { } } - Method [ final public method getFlags ] { + Method [ final public method getFlags ] { - Parameters [0] { } @@ -552,7 +834,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\BSON\Timestamp implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Class [ final class MongoDB\BSON\Timestamp implements MongoDB\BSON\TimestampInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -572,7 +854,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Properties [0] { } - - Methods [5] { + - Methods [7] { Method [ final public method __construct ] { - Parameters [2] { @@ -581,7 +863,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method __toString ] { + Method [ final public method __toString ] { - Parameters [0] { } @@ -605,10 +887,51 @@ Extension [ extension #170 mongodb version 1.2.9 ] { Parameter #0 [ $serialized ] } } + + Method [ final public method getIncrement ] { + + - Parameters [0] { + } + } + + Method [ final public method getTimestamp ] { + + - Parameters [0] { + } + } } } - Class [ final class MongoDB\BSON\UTCDateTime implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + Interface [ interface MongoDB\BSON\TypeWrapper ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ abstract static public method createFromBSONType ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\BSON\Type $type ] + } + } + } + + - Properties [0] { + } + + - Methods [1] { + Method [ abstract public method toBSONType ] { + + - Parameters [0] { + } + } + } + } + + Class [ final class MongoDB\BSON\UTCDateTime implements MongoDB\BSON\UTCDateTimeInterface, JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -636,7 +959,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method __toString ] { + Method [ final public method __toString ] { - Parameters [0] { } @@ -661,7 +984,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method toDateTime ] { + Method [ final public method toDateTime ] { - Parameters [0] { } @@ -669,7 +992,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\Driver\Command ] { + Class [ final class MongoDB\Driver\BulkWrite implements Countable ] { - Constants [0] { } @@ -683,15 +1006,45 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Properties [0] { } - - Methods [2] { + - Methods [6] { Method [ final public method __construct ] { + - Parameters [1] { + Parameter #0 [ array or NULL $options ] + } + } + + Method [ final public method insert ] { + - Parameters [1] { Parameter #0 [ $document ] } } - Method [ public method __wakeup ] { + Method [ final public method update ] { + + - Parameters [3] { + Parameter #0 [ $query ] + Parameter #1 [ $newObj ] + Parameter #2 [ array or NULL $updateOptions ] + } + } + + Method [ final public method delete ] { + + - Parameters [2] { + Parameter #0 [ $query ] + Parameter #1 [ array or NULL $deleteOptions ] + } + } + + Method [ final public method count ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -699,7 +1052,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\Driver\Cursor implements Traversable ] { + Class [ final class MongoDB\Driver\Command ] { - Constants [0] { } @@ -713,13 +1066,37 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Properties [0] { } - - Methods [7] { - Method [ final private method __construct ] { + - Methods [2] { + Method [ final public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $document ] + } + } + + Method [ final public method __wakeup ] { - Parameters [0] { } } + } + } + Class [ final class MongoDB\Driver\Cursor implements Traversable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { Method [ final public method setTypeMap ] { - Parameters [1] { @@ -751,7 +1128,13 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ public method __wakeup ] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -774,19 +1157,19 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } - Methods [3] { - Method [ final private method __construct ] { + Method [ final public method __toString ] { - Parameters [0] { } } - Method [ final public method __toString ] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ public method __wakeup ] { + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -876,7 +1259,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ public method __wakeup ] { + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -907,7 +1290,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ public method __wakeup ] { + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -932,7 +1315,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Properties [0] { } - - Methods [3] { + - Methods [4] { Method [ final public method __construct ] { - Parameters [1] { @@ -946,6 +1329,12 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } + Method [ final public method isDefault ] { + + - Parameters [0] { + } + } + Method [ final public method bsonSerialize ] { - Parameters [0] { @@ -1035,12 +1424,6 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } - Methods [16] { - Method [ final private method __construct ] { - - - Parameters [0] { - } - } - Method [ final public method executeCommand ] { - Parameters [3] { @@ -1134,7 +1517,13 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ public method __wakeup ] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -1142,9 +1531,10 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\Driver\BulkWrite implements Countable ] { + Class [ final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - Constants [0] { + - Constants [1] { + Constant [ string MAJORITY ] { majority } } - Static properties [0] { @@ -1159,42 +1549,38 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Methods [6] { Method [ final public method __construct ] { - - Parameters [1] { - Parameter #0 [ array or NULL $options ] + - Parameters [3] { + Parameter #0 [ $w ] + Parameter #1 [ $wtimeout ] + Parameter #2 [ $journal ] } } - Method [ final public method insert ] { + Method [ final public method getW ] { - - Parameters [1] { - Parameter #0 [ $document ] + - Parameters [0] { } } - Method [ final public method update ] { + Method [ final public method getWtimeout ] { - - Parameters [3] { - Parameter #0 [ $query ] - Parameter #1 [ $newObj ] - Parameter #2 [ array or NULL $updateOptions ] + - Parameters [0] { } } - Method [ final public method delete ] { + Method [ final public method getJournal ] { - - Parameters [2] { - Parameter #0 [ $query ] - Parameter #1 [ array or NULL $deleteOptions ] + - Parameters [0] { } } - Method [ final public method count ] { + Method [ final public method isDefault ] { - Parameters [0] { } } - Method [ public method __wakeup ] { + Method [ final public method bsonSerialize ] { - Parameters [0] { } @@ -1202,10 +1588,9 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { + Class [ final class MongoDB\Driver\WriteConcernError ] { - - Constants [1] { - Constant [ string MAJORITY ] { majority } + - Constants [0] { } - Static properties [0] { @@ -1218,34 +1603,31 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } - Methods [5] { - Method [ final public method __construct ] { + Method [ final public method getCode ] { - - Parameters [3] { - Parameter #0 [ $w ] - Parameter #1 [ $wtimeout ] - Parameter #2 [ $journal ] + - Parameters [0] { } } - Method [ final public method getW ] { + Method [ final public method getInfo ] { - Parameters [0] { } } - Method [ final public method getWtimeout ] { + Method [ final public method getMessage ] { - Parameters [0] { } } - Method [ final public method getJournal ] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ final public method bsonSerialize ] { + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -1253,7 +1635,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\Driver\WriteConcernError ] { + Class [ final class MongoDB\Driver\WriteError ] { - Constants [0] { } @@ -1267,14 +1649,20 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Properties [0] { } - - Methods [5] { - Method [ final private method __construct ] { + - Methods [6] { + Method [ final public method getCode ] { - Parameters [0] { } } - Method [ final public method getCode ] { + Method [ final public method getIndex ] { + + - Parameters [0] { + } + } + + Method [ final public method getMessage ] { - Parameters [0] { } @@ -1286,13 +1674,13 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Method [ final public method getMessage ] { + Method [ final private method __construct ] { - Parameters [0] { } } - Method [ public method __wakeup ] { + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -1300,7 +1688,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\Driver\WriteError ] { + Class [ final class MongoDB\Driver\WriteResult ] { - Constants [0] { } @@ -1314,38 +1702,74 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Properties [0] { } - - Methods [6] { - Method [ final private method __construct ] { + - Methods [12] { + Method [ final public method getInsertedCount ] { - Parameters [0] { } } - Method [ final public method getCode ] { + Method [ final public method getMatchedCount ] { - Parameters [0] { } } - Method [ final public method getIndex ] { + Method [ final public method getModifiedCount ] { - Parameters [0] { } } - Method [ final public method getMessage ] { + Method [ final public method getDeletedCount ] { - Parameters [0] { } } - Method [ final public method getInfo ] { + Method [ final public method getUpsertedCount ] { + + - Parameters [0] { + } + } + + Method [ final public method getServer ] { - Parameters [0] { } } - Method [ public method __wakeup ] { + Method [ final public method getUpsertedIds ] { + + - Parameters [0] { + } + } + + Method [ final public method getWriteConcernError ] { + + - Parameters [0] { + } + } + + Method [ final public method getWriteErrors ] { + + - Parameters [0] { + } + } + + Method [ final public method isAcknowledged ] { + + - Parameters [0] { + } + } + + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { - Parameters [0] { } @@ -1353,7 +1777,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ final class MongoDB\Driver\WriteResult ] { + Interface [ interface MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1367,100 +1791,189 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Properties [0] { } - - Methods [12] { - Method [ final private method __construct ] { + - Methods [0] { + } + } - - Parameters [0] { + Class [ class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Throwable, MongoDB\Driver\Exception\Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ final public method getInsertedCount ] { + Method [ public method __wakeup ] { + } - - Parameters [0] { - } + Method [ final public method getMessage ] { } - Method [ final public method getMatchedCount ] { + Method [ final public method getCode ] { + } - - Parameters [0] { - } + Method [ final public method getFile ] { } - Method [ final public method getModifiedCount ] { + Method [ final public method getLine ] { + } - - Parameters [0] { - } + Method [ final public method getTrace ] { } - Method [ final public method getDeletedCount ] { + Method [ final public method getPrevious ] { + } - - Parameters [0] { - } + Method [ final public method getTraceAsString ] { } - Method [ final public method getUpsertedCount ] { + Method [ public method __toString ] { + } + } + } - - Parameters [0] { + Class [ 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 [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ final public method getServer ] { + Method [ public method __wakeup ] { + } - - Parameters [0] { - } + Method [ final public method getMessage ] { } - Method [ final public method getUpsertedIds ] { + Method [ final public method getCode ] { + } - - Parameters [0] { - } + Method [ final public method getFile ] { } - Method [ final public method getWriteConcernError ] { + Method [ final public method getLine ] { + } - - Parameters [0] { - } + Method [ final public method getTrace ] { } - Method [ final public method getWriteErrors ] { + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + Property [ protected $writeResult ] + } + + - Methods [11] { + Method [ final public method getWriteResult ] { - Parameters [0] { } } - Method [ final public method isAcknowledged ] { + Method [ public method __construct ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ public method __wakeup ] { + Method [ public method __wakeup ] { + } - - Parameters [0] { - } + Method [ final public method getMessage ] { } - } - } - Interface [ interface MongoDB\Driver\Exception\Exception ] { + Method [ final public method getCode ] { + } - - Constants [0] { - } + Method [ final public method getFile ] { + } - - Static properties [0] { - } + Method [ final public method getLine ] { + } - - Static methods [0] { - } + Method [ final public method getTrace ] { + } - - Properties [0] { - } + Method [ final public method getPrevious ] { + } - - Methods [0] { + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } } } - Class [ class MongoDB\Driver\Exception\LogicException extends LogicException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1517,7 +2030,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1528,14 +2041,21 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Static methods [0] { } - - Properties [4] { + - Properties [5] { Property [ protected $message ] Property [ protected $code ] Property [ protected $file ] Property [ protected $line ] + Property [ protected $writeResult ] } - - Methods [10] { + - Methods [11] { + Method [ final public method getWriteResult ] { + + - Parameters [0] { + } + } + Method [ public method __construct ] { - Parameters [3] { @@ -1574,7 +2094,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1631,7 +2151,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Exception\ExecutionTimeoutException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { - Constants [0] { } @@ -1688,7 +2208,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ class MongoDB\Driver\Exception\ConnectionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1745,7 +2265,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\LogicException extends LogicException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1859,7 +2379,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1870,21 +2390,14 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Static methods [0] { } - - Properties [5] { + - Properties [4] { Property [ protected $message ] Property [ protected $code ] Property [ protected $file ] Property [ protected $line ] - Property [ protected $writeResult ] } - - Methods [11] { - Method [ final public method getWriteResult ] { - - - Parameters [0] { - } - } - + - Methods [10] { Method [ public method __construct ] { - Parameters [3] { @@ -1923,7 +2436,7 @@ Extension [ extension #170 mongodb version 1.2.9 ] { } } - Class [ class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Interface [ interface MongoDB\Driver\Monitoring\Subscriber ] { - Constants [0] { } @@ -1934,60 +2447,117 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Static methods [0] { } - - Properties [5] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - Property [ protected $writeResult ] + - Properties [0] { } - - Methods [11] { - Method [ final public method getWriteResult ] { + - Methods [0] { + } + } - - Parameters [0] { + Interface [ interface MongoDB\Driver\Monitoring\CommandSubscriber extends MongoDB\Driver\Monitoring\Subscriber ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ abstract public method commandStarted ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\CommandStartedEvent $event ] } } - Method [ public method __construct ] { + Method [ abstract public method commandSucceeded ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\CommandSucceededEvent $event ] } } - Method [ public method __wakeup ] { + Method [ abstract public method commandFailed ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\Monitoring\CommandFailedEvent $event ] + } } + } + } - Method [ final public method getMessage ] { + Class [ final class MongoDB\Driver\Monitoring\CommandFailedEvent ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [8] { + Method [ final private method __construct ] { + + - Parameters [0] { + } } - Method [ final public method getCode ] { + Method [ final public method getCommandName ] { + + - Parameters [0] { + } } - Method [ final public method getFile ] { + Method [ final public method getError ] { + + - Parameters [0] { + } } - Method [ final public method getLine ] { + Method [ final public method getDurationMicros ] { + + - Parameters [0] { + } } - Method [ final public method getTrace ] { + Method [ final public method getOperationId ] { + + - Parameters [0] { + } } - Method [ final public method getPrevious ] { + Method [ final public method getRequestId ] { + + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { + Method [ final public method getServer ] { + + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ final public method __wakeup ] { + + - Parameters [0] { + } } } } - Class [ final class MongoDB\Driver\Exception\ExecutionTimeoutException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ final class MongoDB\Driver\Monitoring\CommandStartedEvent ] { - Constants [0] { } @@ -1998,53 +2568,61 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Static methods [0] { } - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + - Properties [0] { } - - Methods [10] { - Method [ public method __construct ] { + - Methods [8] { + Method [ final private method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } } - Method [ public method __wakeup ] { - } + Method [ final public method getCommand ] { - Method [ final public method getMessage ] { + - Parameters [0] { + } } - Method [ final public method getCode ] { - } + Method [ final public method getCommandName ] { - Method [ final public method getFile ] { + - Parameters [0] { + } } - Method [ final public method getLine ] { + Method [ final public method getDatabaseName ] { + + - Parameters [0] { + } } - Method [ final public method getTrace ] { + Method [ final public method getOperationId ] { + + - Parameters [0] { + } } - Method [ final public method getPrevious ] { + Method [ final public method getRequestId ] { + + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { + Method [ final public method getServer ] { + + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ final public method __wakeup ] { + + - Parameters [0] { + } } } } - Class [ final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Monitoring\CommandSucceededEvent ] { - Constants [0] { } @@ -2055,48 +2633,56 @@ Extension [ extension #170 mongodb version 1.2.9 ] { - Static methods [0] { } - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + - Properties [0] { } - - Methods [10] { - Method [ public method __construct ] { + - Methods [8] { + Method [ final private method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } } - Method [ public method __wakeup ] { - } + Method [ final public method getCommandName ] { - Method [ final public method getMessage ] { + - Parameters [0] { + } } - Method [ final public method getCode ] { - } + Method [ final public method getDurationMicros ] { - Method [ final public method getFile ] { + - Parameters [0] { + } } - Method [ final public method getLine ] { + Method [ final public method getOperationId ] { + + - Parameters [0] { + } } - Method [ final public method getTrace ] { + Method [ final public method getReply ] { + + - Parameters [0] { + } } - Method [ final public method getPrevious ] { + Method [ final public method getRequestId ] { + + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { + Method [ final public method getServer ] { + + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ final public method __wakeup ] { + + - Parameters [0] { + } } } } diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec index 2ff8a5d..2b3f7d9 100644 --- a/php-pecl-mongodb.spec +++ b/php-pecl-mongodb.spec @@ -21,7 +21,6 @@ # After 40-smbclient.ini, see https://jira.mongodb.org/browse/PHPC-658 %global ini_name 50-%{pecl_name}.ini %endif -#global prever alpha3 %ifarch x86_64 %global with_tests 0%{?_with_tests:1} @@ -32,7 +31,7 @@ %global with_tests 0%{?_with_tests:1} %endif -%if 0%{?fedora} >= 26 +%if 0%{?fedora} >= 27 %global with_syslib 1 %else %global with_syslib 0 @@ -40,12 +39,14 @@ Summary: MongoDB driver for PHP Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 1.2.9 -Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +%global upstream_version 1.3.0 +%global upstream_prever beta1 +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: ASL 2.0 Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz BuildRequires: %{?scl_prefix}php-devel > 5.4 BuildRequires: %{?scl_prefix}php-pear @@ -53,12 +54,14 @@ BuildRequires: %{?scl_prefix}php-json BuildRequires: cyrus-sasl-devel BuildRequires: openssl-devel %if %{with_syslib} -BuildRequires: pkgconfig(libbson-1.0) >= 1.6 -BuildRequires: pkgconfig(libmongoc-1.0) >= 1.6 +BuildRequires: pkgconfig(libbson-1.0) >= 1.7 +BuildRequires: pkgconfig(libmongoc-1.0) >= 1.7 %else -Provides: bundled(libbson) = 1.6.1 -Provides: bundled(mongo-c-driver) = 1.6.1 +Provides: bundled(libbson) = 1.7.0 +Provides: bundled(mongo-c-driver) = 1.7.0 %endif +BuildRequires: snappy-devel +BuildRequires: zlib-devel %if %{with_tests} BuildRequires: mongodb-server %endif @@ -121,7 +124,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{version}%{?prever} NTS +mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS # Don't install/register tests sed -e 's/role="test"/role="src"/' \ @@ -132,8 +135,8 @@ cd NTS # Sanity check, really often broken extver=$(sed -n '/#define PHP_MONGODB_VERSION/{s/.* "//;s/".*$//;p}' php_phongo.h) -if test "x${extver}" != "x%{version}%{?prever:%{prever}}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:%{prever}}. +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 .. @@ -270,19 +273,6 @@ if [ -s server.pid ] ; then : Drop known to fail tests %if "%{mongo_version}" < "3.4" ### With mongodb 3.2 - rm ?TS/tests/standalone/bug0231.phpt -%endif -%if "%{mongo_version}" < "3.2" - ### With mongodb 3.0 - rm ?TS/tests/manager/manager-executeBulkWrite-011.phpt - rm ?TS/tests/manager/manager-executeQuery-002.phpt - rm ?TS/tests/readPreference/bug0146-002.phpt -%endif -%if "%{mongo_version}" < "3.0" - ### Older mongodb - rm ?TS/tests/bulk/write-0003.phpt - rm ?TS/tests/manager/manager-executeBulkWrite_error-001.phpt - rm ?TS/tests/manager/manager-executeBulkWrite_error-002.phpt %endif : Run the test suite @@ -331,6 +321,10 @@ exit $ret %changelog +* Fri Aug 11 2017 Remi Collet - 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 - 1.2.9-4 - rebuild for PHP 7.2.0beta1 new API -- cgit