From a2c96652c91b7af429039d68165032aa628c71b8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 29 Nov 2016 17:48:09 +0100 Subject: php-pecl-mongodb: switch the spec --- REFLECTION | 1537 ++++++++++++++++++++------------- REFLECTION-DEV | 2105 --------------------------------------------- php-pecl-mongodb-dev.spec | 429 --------- php-pecl-mongodb.spec | 66 +- 4 files changed, 983 insertions(+), 3154 deletions(-) delete mode 100644 REFLECTION-DEV delete mode 100644 php-pecl-mongodb-dev.spec diff --git a/REFLECTION b/REFLECTION index a868c09..5e99dd6 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,11 @@ -Extension [ extension #89 mongodb version 1.1.9 ] { +Extension [ extension #155 mongodb version 1.2.0 ] { + + - Dependencies { + Dependency [ date (Required) ] + Dependency [ json (Required) ] + Dependency [ spl (Required) ] + Dependency [ standard (Required) ] + } - INI { Entry [ mongodb.debug ] @@ -6,10 +13,9 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - - Constants [3] { - Constant [ string MONGODB_VERSION ] { 1.1.9 } + - Constants [2] { + Constant [ string MONGODB_VERSION ] { 1.2.0 } Constant [ string MONGODB_STABILITY ] { stable } - Constant [ string BSON_NAMESPACE ] { MongoDB\BSON } } - Functions { @@ -39,8 +45,8 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - - Classes [37] { - Class [ final class MongoDB\Driver\Command ] { + - Classes [38] { + Interface [ interface MongoDB\BSON\Type ] { - Constants [0] { } @@ -54,20 +60,11 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Properties [0] { } - - Methods [2] { - Method [ final public method __construct ] { - - - Parameters [1] { - Parameter #0 [ $document ] - } - } - - Method [ public method __wakeUp ] { - } + - Methods [0] { } } - Class [ final class MongoDB\Driver\Cursor implements Traversable ] { + Interface [ interface MongoDB\BSON\Serializable extends MongoDB\BSON\Type ] { - Constants [0] { } @@ -81,47 +78,40 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Properties [0] { } - - Methods [7] { - Method [ final private method __construct ] { - } - - Method [ final public method setTypeMap ] { - - - Parameters [1] { - Parameter #0 [ array $typemap ] - } - } - - Method [ final public method toArray ] { + - Methods [1] { + Method [ abstract public method bsonSerialize ] { - Parameters [0] { } } + } + } - Method [ final public method getId ] { + Interface [ interface MongoDB\BSON\Unserializable ] { - - Parameters [0] { - } - } + - Constants [0] { + } - Method [ final public method getServer ] { + - Static properties [0] { + } - - Parameters [0] { - } - } + - Static methods [0] { + } - Method [ final public method isDead ] { + - Properties [0] { + } - - Parameters [0] { - } - } + - Methods [1] { + Method [ abstract public method bsonUnserialize ] { - Method [ public method __wakeUp ] { + - Parameters [1] { + Parameter #0 [ array $data ] + } } } } - Class [ final class MongoDB\Driver\CursorId ] { + Interface [ interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - Constants [0] { } @@ -135,109 +125,153 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Properties [0] { } - - Methods [3] { - Method [ final private method __construct ] { + - Methods [2] { + Method [ abstract public method bsonUnserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } } - Method [ final public method __toString ] { + Method [ abstract public method bsonSerialize ] { - Parameters [0] { } } - - Method [ public method __wakeUp ] { - } } } - Class [ final class MongoDB\Driver\Manager ] { + Class [ final class MongoDB\BSON\Binary implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Constants [0] { + - Constants [7] { + Constant [ integer TYPE_GENERIC ] { 0 } + Constant [ integer TYPE_FUNCTION ] { 1 } + Constant [ integer TYPE_OLD_BINARY ] { 2 } + Constant [ integer TYPE_OLD_UUID ] { 3 } + Constant [ integer TYPE_UUID ] { 4 } + Constant [ integer TYPE_MD5 ] { 5 } + Constant [ integer TYPE_USER_DEFINED ] { 128 } } - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } } - Properties [0] { } - - Methods [10] { + - Methods [7] { Method [ final public method __construct ] { - - Parameters [3] { - Parameter #0 [ $uri ] - Parameter #1 [ array $options ] - Parameter #2 [ array $driverOptions ] + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $type ] } } - Method [ final public method executeCommand ] { + Method [ final public method __toString ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + - Parameters [0] { } } - Method [ final public method executeQuery ] { + Method [ final public method jsonSerialize ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\Query $zquery ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + - Parameters [0] { } } - Method [ final public method executeBulkWrite ] { + Method [ final public method serialize ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] - Parameter #2 [ MongoDB\Driver\WriteConcern or NULL $writeConcern ] + - Parameters [0] { } } - Method [ final public method getReadConcern ] { + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ $serialized ] + } + } + + Method [ final public method getData ] { - Parameters [0] { } } - Method [ final public method getReadPreference ] { + Method [ final public method getType ] { - Parameters [0] { } } + } + } - Method [ final public method getServers ] { + Class [ final class MongoDB\BSON\Decimal128 implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } + } + + - Properties [0] { + } + + - Methods [5] { + Method [ final public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + } + + Method [ final public method __toString ] { - Parameters [0] { } } - Method [ final public method getWriteConcern ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } } - Method [ final public method selectServer ] { + Method [ final public method serialize ] { - - Parameters [1] { - Parameter #0 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + - Parameters [0] { } } - Method [ public method __wakeUp ] { + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ $serialized ] + } } } } - Class [ final class MongoDB\Driver\Query ] { + Class [ final class MongoDB\BSON\Javascript implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -245,51 +279,59 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } } - Properties [0] { } - - Methods [2] { + - Methods [7] { Method [ final public method __construct ] { - Parameters [2] { - Parameter #0 [ $filter ] - Parameter #1 [ array $options ] + Parameter #0 [ $javascript ] + Parameter #1 [ $scope ] } } - Method [ public method __wakeUp ] { - } - } - } + Method [ final public method __toString ] { - Class [ final class MongoDB\Driver\ReadConcern ] { + - Parameters [0] { + } + } - - Constants [2] { - Constant [ string LOCAL ] { local } - Constant [ string MAJORITY ] { majority } - } + Method [ final public method jsonSerialize ] { - - Static properties [0] { - } + - Parameters [0] { + } + } - - Static methods [0] { - } + Method [ final public method serialize ] { - - Properties [0] { - } + - Parameters [0] { + } + } - - Methods [2] { - Method [ final public method __construct ] { + Method [ final public method unserialize ] { - Parameters [1] { - Parameter #0 [ $level ] + Parameter #0 [ $serialized ] } } - Method [ final public method getLevel ] { + Method [ final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ final public method getScope ] { - Parameters [0] { } @@ -297,174 +339,220 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - Class [ final class MongoDB\Driver\ReadPreference ] { + Class [ final class MongoDB\BSON\MaxKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Constants [5] { - Constant [ integer RP_PRIMARY ] { 1 } - Constant [ integer RP_PRIMARY_PREFERRED ] { 5 } - Constant [ integer RP_SECONDARY ] { 2 } - Constant [ integer RP_SECONDARY_PREFERRED ] { 6 } - Constant [ integer RP_NEAREST ] { 10 } + - Constants [0] { } - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } } - Properties [0] { } - Methods [3] { - Method [ final public method __construct ] { + Method [ final public method jsonSerialize ] { - - Parameters [2] { - Parameter #0 [ $mode ] - Parameter #1 [ array or NULL $tagSets ] + - Parameters [0] { } } - Method [ final public method getMode ] { + Method [ final public method serialize ] { - Parameters [0] { } } - Method [ final public method getTagSets ] { + Method [ final public method unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $serialized ] } } } } - Class [ final class MongoDB\Driver\Server ] { + Class [ final class MongoDB\BSON\MinKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Constants [9] { - Constant [ integer TYPE_UNKNOWN ] { 0 } - Constant [ integer TYPE_STANDALONE ] { 1 } - Constant [ integer TYPE_MONGOS ] { 2 } - Constant [ integer TYPE_POSSIBLE_PRIMARY ] { 3 } - Constant [ integer TYPE_RS_PRIMARY ] { 4 } - Constant [ integer TYPE_RS_SECONDARY ] { 5 } - Constant [ integer TYPE_RS_ARBITER ] { 6 } - Constant [ integer TYPE_RS_OTHER ] { 7 } - Constant [ integer TYPE_RS_GHOST ] { 8 } + - Constants [0] { } - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } } - Properties [0] { } - - Methods [16] { - Method [ final private method __construct ] { + - Methods [3] { + Method [ final public method jsonSerialize ] { + + - Parameters [0] { + } } - Method [ final public method executeCommand ] { + Method [ final public method serialize ] { - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + - Parameters [0] { } } - Method [ final public method executeQuery ] { + Method [ final public method unserialize ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\Query $zquery ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + - Parameters [1] { + Parameter #0 [ $serialized ] } } + } + } - Method [ final public method executeBulkWrite ] { + Class [ final class MongoDB\BSON\ObjectID implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] - Parameter #2 [ MongoDB\Driver\WriteConcern or NULL $writeConcern ] + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] } } + } - Method [ final public method getHost ] { + - Properties [0] { + } - - Parameters [0] { + - Methods [6] { + Method [ final public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $id ] } } - Method [ final public method getTags ] { + Method [ final public method getTimestamp ] { - Parameters [0] { } } - Method [ final public method getInfo ] { + Method [ final public method __toString ] { - Parameters [0] { } } - Method [ final public method getLatency ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } } - Method [ final public method getPort ] { + Method [ final public method serialize ] { - Parameters [0] { } } - Method [ final public method getType ] { + Method [ final public method unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $serialized ] } } + } + } - Method [ final public method isPrimary ] { + Class [ final class MongoDB\BSON\Regex implements MongoDB\BSON\Type, Serializable, JsonSerializable ] { - - Parameters [0] { + - 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 isSecondary ] { + Method [ final public method __toString ] { - Parameters [0] { } } - Method [ final public method isArbiter ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } } - Method [ final public method isHidden ] { + Method [ final public method serialize ] { - Parameters [0] { } } - Method [ final public method isPassive ] { + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ $serialized ] + } + } + + Method [ final public method getPattern ] { - Parameters [0] { } } - Method [ public method __wakeUp ] { + Method [ final public method getFlags ] { + + - Parameters [0] { + } } } } - Class [ final class MongoDB\Driver\BulkWrite implements Countable ] { + Class [ final class MongoDB\BSON\Timestamp implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - Constants [0] { } @@ -472,93 +560,108 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } } - Properties [0] { } - - Methods [6] { + - Methods [5] { Method [ final public method __construct ] { - - Parameters [1] { - Parameter #0 [ array or NULL $options ] + - Parameters [2] { + Parameter #0 [ $increment ] + Parameter #1 [ $timestamp ] } } - Method [ final public method insert ] { + Method [ final public method __toString ] { - - Parameters [1] { - Parameter #0 [ $document ] + - Parameters [0] { } } - Method [ final public method update ] { + Method [ final public method jsonSerialize ] { - - 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 serialize ] { - - Parameters [2] { - Parameter #0 [ $query ] - Parameter #1 [ array or NULL $deleteOptions ] + - Parameters [0] { } } - Method [ final public method count ] { + Method [ final public method unserialize ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $serialized ] } } - - Method [ public method __wakeUp ] { - } } } - Class [ final class MongoDB\Driver\WriteConcern ] { + Class [ final class MongoDB\BSON\UTCDateTime implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - Constants [1] { - Constant [ string MAJORITY ] { majority } + - Constants [0] { } - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method __set_state ] { + + - Parameters [1] { + Parameter #0 [ array $properties ] + } + } } - Properties [0] { } - - Methods [4] { + - Methods [6] { Method [ final public method __construct ] { - - Parameters [3] { - Parameter #0 [ $w ] - Parameter #1 [ $wtimeout ] - Parameter #2 [ $journal ] + - Parameters [1] { + Parameter #0 [ $milliseconds ] } } - Method [ final public method getW ] { + Method [ final public method __toString ] { - Parameters [0] { } } - Method [ final public method getWtimeout ] { + Method [ final public method jsonSerialize ] { - Parameters [0] { } } - Method [ final public method getJournal ] { + Method [ final public method serialize ] { + + - Parameters [0] { + } + } + + Method [ final public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ $serialized ] + } + } + + Method [ final public method toDateTime ] { - Parameters [0] { } @@ -566,7 +669,7 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - Class [ final class MongoDB\Driver\WriteConcernError ] { + Class [ final class MongoDB\Driver\Command ] { - Constants [0] { } @@ -580,34 +683,23 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Properties [0] { } - - Methods [5] { - Method [ final private method __construct ] { - } - - Method [ final public method getCode ] { - - - Parameters [0] { - } - } - - Method [ final public method getInfo ] { + - Methods [2] { + Method [ final public method __construct ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $document ] } } - Method [ final public method getMessage ] { + Method [ public method __wakeup ] { - Parameters [0] { } } - - Method [ public method __wakeUp ] { - } } } - Class [ final class MongoDB\Driver\WriteError ] { + Class [ final class MongoDB\Driver\Cursor implements Traversable ] { - Constants [0] { } @@ -621,40 +713,53 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Properties [0] { } - - Methods [6] { + - Methods [7] { Method [ final private method __construct ] { + + - Parameters [0] { + } } - Method [ final public method getCode ] { + Method [ final public method setTypeMap ] { + + - Parameters [1] { + Parameter #0 [ array $typemap ] + } + } + + Method [ final public method toArray ] { - Parameters [0] { } } - Method [ final public method getIndex ] { + Method [ final public method getId ] { - Parameters [0] { } } - Method [ final public method getMessage ] { + Method [ final public method getServer ] { - Parameters [0] { } } - Method [ final public method getInfo ] { + Method [ final public method isDead ] { - Parameters [0] { } } - Method [ public method __wakeUp ] { + Method [ public method __wakeup ] { + + - Parameters [0] { + } } } } - Class [ final class MongoDB\Driver\WriteResult ] { + Class [ final class MongoDB\Driver\CursorId ] { - Constants [0] { } @@ -668,76 +773,118 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Properties [0] { } - - Methods [12] { + - Methods [3] { Method [ final private method __construct ] { + + - Parameters [0] { + } } - Method [ final public method getInsertedCount ] { + Method [ final public method __toString ] { - Parameters [0] { } } - Method [ final public method getMatchedCount ] { + Method [ public method __wakeup ] { - Parameters [0] { } } + } + } - Method [ final public method getModifiedCount ] { + Class [ final class MongoDB\Driver\Manager ] { - - Parameters [0] { + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [10] { + Method [ final public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $uri ] + Parameter #1 [ array $options ] + Parameter #2 [ array $driverOptions ] } } - Method [ final public method getDeletedCount ] { + Method [ final public method executeCommand ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] } } - Method [ final public method getUpsertedCount ] { + Method [ final public method executeQuery ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $namespace ] + Parameter #1 [ MongoDB\Driver\Query $zquery ] + Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] } } - Method [ final public method getServer ] { + Method [ final public method executeBulkWrite ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $namespace ] + Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] + Parameter #2 [ MongoDB\Driver\WriteConcern or NULL $writeConcern ] } } - Method [ final public method getUpsertedIds ] { + Method [ final public method getReadConcern ] { - Parameters [0] { } } - Method [ final public method getWriteConcernError ] { + Method [ final public method getReadPreference ] { - Parameters [0] { } } - Method [ final public method getWriteErrors ] { + Method [ final public method getServers ] { - Parameters [0] { } } - Method [ final public method isAcknowledged ] { + Method [ final public method getWriteConcern ] { - Parameters [0] { } } - Method [ public method __wakeUp ] { + Method [ final public method selectServer ] { + + - Parameters [1] { + Parameter #0 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + } } - } - } - Interface [ interface MongoDB\Driver\Exception\Exception ] { + Method [ public method __wakeup ] { + + - Parameters [0] { + } + } + } + } + + Class [ final class MongoDB\Driver\Query ] { - Constants [0] { } @@ -751,13 +898,29 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Properties [0] { } - - Methods [0] { + - Methods [2] { + Method [ final public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $filter ] + Parameter #1 [ array or NULL $options ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + } } } - Class [ class MongoDB\Driver\Exception\LogicException extends LogicException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\ReadConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - Constants [0] { + - Constants [3] { + Constant [ string LOCAL ] { local } + Constant [ string MAJORITY ] { majority } + Constant [ string LINEARIZABLE ] { linearizable } } - Static properties [0] { @@ -766,55 +929,100 @@ Extension [ extension #89 mongodb version 1.1.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 [3] { + Method [ final public method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [1] { + Parameter #0 [ $level ] } } - Method [ public method __wakeup ] { - } + Method [ final public method getLevel ] { - Method [ final public method getMessage ] { + - Parameters [0] { + } } - Method [ final public method getCode ] { - } + Method [ final public method bsonSerialize ] { - Method [ final public method getFile ] { + - Parameters [0] { + } } + } + } - Method [ final public method getLine ] { + Class [ final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { + + - Constants [7] { + Constant [ integer RP_PRIMARY ] { 1 } + Constant [ integer RP_PRIMARY_PREFERRED ] { 5 } + Constant [ integer RP_SECONDARY ] { 2 } + Constant [ integer RP_SECONDARY_PREFERRED ] { 6 } + Constant [ integer RP_NEAREST ] { 10 } + Constant [ integer NO_MAX_STALENESS ] { -1 } + Constant [ integer SMALLEST_MAX_STALENESS_SECONDS ] { 90 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ final public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $mode ] + Parameter #1 [ array or NULL $tagSets ] + Parameter #2 [ array or NULL $options ] + } } - Method [ final public method getTrace ] { + Method [ final public method getMaxStalenessSeconds ] { + + - Parameters [0] { + } } - Method [ final public method getPrevious ] { + Method [ final public method getMode ] { + + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { + Method [ final public method getTagSets ] { + + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ final public method bsonSerialize ] { + + - Parameters [0] { + } } } } - Class [ class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\Server ] { - - Constants [0] { + - Constants [9] { + Constant [ integer TYPE_UNKNOWN ] { 0 } + Constant [ integer TYPE_STANDALONE ] { 1 } + Constant [ integer TYPE_MONGOS ] { 2 } + Constant [ integer TYPE_POSSIBLE_PRIMARY ] { 3 } + Constant [ integer TYPE_RS_PRIMARY ] { 4 } + Constant [ integer TYPE_RS_SECONDARY ] { 5 } + Constant [ integer TYPE_RS_ARBITER ] { 6 } + Constant [ integer TYPE_RS_OTHER ] { 7 } + Constant [ integer TYPE_RS_GHOST ] { 8 } } - Static properties [0] { @@ -823,53 +1031,118 @@ Extension [ extension #89 mongodb version 1.1.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 [16] { + Method [ final private method __construct ] { + + - Parameters [0] { + } + } + + Method [ final public method executeCommand ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ $db ] + Parameter #1 [ MongoDB\Driver\Command $command ] + Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] } } - Method [ public method __wakeup ] { + Method [ final public method executeQuery ] { + + - Parameters [3] { + Parameter #0 [ $namespace ] + Parameter #1 [ MongoDB\Driver\Query $zquery ] + Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] + } } - Method [ final public method getMessage ] { + Method [ final public method executeBulkWrite ] { + + - Parameters [3] { + Parameter #0 [ $namespace ] + Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] + Parameter #2 [ MongoDB\Driver\WriteConcern or NULL $writeConcern ] + } } - Method [ final public method getCode ] { + Method [ final public method getHost ] { + + - Parameters [0] { + } } - Method [ final public method getFile ] { + Method [ final public method getTags ] { + + - Parameters [0] { + } } - Method [ final public method getLine ] { + Method [ final public method getInfo ] { + + - Parameters [0] { + } } - Method [ final public method getTrace ] { + Method [ final public method getLatency ] { + + - Parameters [0] { + } } - Method [ final public method getPrevious ] { + Method [ final public method getPort ] { + + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { + Method [ final public method getType ] { + + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ final public method isPrimary ] { + + - Parameters [0] { + } + } + + Method [ final public method isSecondary ] { + + - Parameters [0] { + } + } + + Method [ final public method isArbiter ] { + + - Parameters [0] { + } + } + + Method [ final public method isHidden ] { + + - Parameters [0] { + } + } + + Method [ final public method isPassive ] { + + - Parameters [0] { + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } } } } - Class [ class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\BulkWrite implements Countable ] { - Constants [0] { } @@ -880,55 +1153,59 @@ Extension [ extension #89 mongodb version 1.1.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 [6] { + Method [ final public method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [1] { + Parameter #0 [ array or NULL $options ] } } - Method [ public method __wakeup ] { - } + Method [ final public method insert ] { - Method [ final public method getMessage ] { + - Parameters [1] { + Parameter #0 [ $document ] + } } - Method [ final public method getCode ] { - } + Method [ final public method update ] { - Method [ final public method getFile ] { + - Parameters [3] { + Parameter #0 [ $query ] + Parameter #1 [ $newObj ] + Parameter #2 [ array or NULL $updateOptions ] + } } - Method [ final public method getLine ] { - } + Method [ final public method delete ] { - Method [ final public method getTrace ] { + - Parameters [2] { + Parameter #0 [ $query ] + Parameter #1 [ array or NULL $deleteOptions ] + } } - Method [ final public method getPrevious ] { - } + Method [ final public method count ] { - Method [ final public method getTraceAsString ] { + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ public method __wakeup ] { + + - Parameters [0] { + } } } } - Class [ class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - Constants [0] { + - Constants [1] { + Constant [ string MAJORITY ] { majority } } - Static properties [0] { @@ -937,53 +1214,93 @@ Extension [ extension #89 mongodb version 1.1.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 [5] { + Method [ final public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ $w ] + Parameter #1 [ $wtimeout ] + Parameter #2 [ $journal ] } } - Method [ public method __wakeup ] { + Method [ final public method getW ] { + + - Parameters [0] { + } } - Method [ final public method getMessage ] { + Method [ final public method getWtimeout ] { + + - Parameters [0] { + } } - Method [ final public method getCode ] { + Method [ final public method getJournal ] { + + - Parameters [0] { + } } - Method [ final public method getFile ] { + Method [ final public method bsonSerialize ] { + + - Parameters [0] { + } } + } + } - Method [ final public method getLine ] { + Class [ final class MongoDB\Driver\WriteConcernError ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ final private method __construct ] { + + - Parameters [0] { + } } - Method [ final public method getTrace ] { + Method [ final public method getCode ] { + + - Parameters [0] { + } } - Method [ final public method getPrevious ] { + Method [ final public method getInfo ] { + + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { + Method [ final public method getMessage ] { + + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ public method __wakeup ] { + + - Parameters [0] { + } } } } - Class [ class MongoDB\Driver\Exception\ConnectionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ final class MongoDB\Driver\WriteError ] { - Constants [0] { } @@ -994,53 +1311,49 @@ Extension [ extension #89 mongodb version 1.1.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 [6] { + Method [ final private method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } } - Method [ public method __wakeup ] { + Method [ final public method getCode ] { + + - Parameters [0] { + } } - Method [ final public method getMessage ] { - } + Method [ final public method getIndex ] { - Method [ final public method getCode ] { + - Parameters [0] { + } } - Method [ final public method getFile ] { - } + Method [ final public method getMessage ] { - Method [ final public method getLine ] { + - Parameters [0] { + } } - Method [ final public method getTrace ] { - } + Method [ final public method getInfo ] { - Method [ final public method getPrevious ] { + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { - } + Method [ public method __wakeup ] { - Method [ public method __toString ] { + - Parameters [0] { + } } } } - Class [ class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ final class MongoDB\Driver\WriteResult ] { - Constants [0] { } @@ -1051,53 +1364,103 @@ Extension [ extension #89 mongodb version 1.1.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 [12] { + Method [ final private method __construct ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } } - Method [ public method __wakeup ] { + Method [ final public method getInsertedCount ] { + + - Parameters [0] { + } } - Method [ final public method getMessage ] { + Method [ final public method getMatchedCount ] { + + - Parameters [0] { + } } - Method [ final public method getCode ] { + Method [ final public method getModifiedCount ] { + + - Parameters [0] { + } } - Method [ final public method getFile ] { + Method [ final public method getDeletedCount ] { + + - Parameters [0] { + } } - Method [ final public method getLine ] { + Method [ final public method getUpsertedCount ] { + + - Parameters [0] { + } } - Method [ final public method getTrace ] { + Method [ final public method getServer ] { + + - Parameters [0] { + } } - Method [ final public method getPrevious ] { + Method [ final public method getUpsertedIds ] { + + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { + Method [ final public method getWriteConcernError ] { + + - Parameters [0] { + } } - Method [ public method __toString ] { + Method [ final public method getWriteErrors ] { + + - Parameters [0] { + } + } + + Method [ final public method isAcknowledged ] { + + - Parameters [0] { + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } } } } - Class [ final class MongoDB\Driver\Exception\SSLConnectionException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Interface [ interface MongoDB\Driver\Exception\Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class MongoDB\Driver\Exception\LogicException extends LogicException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1154,7 +1517,7 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - Class [ abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { + Class [ class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1165,21 +1528,14 @@ Extension [ extension #89 mongodb version 1.1.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] { @@ -1218,7 +1574,7 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - Class [ class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1229,21 +1585,14 @@ Extension [ extension #89 mongodb version 1.1.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] { @@ -1282,7 +1631,7 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - Class [ final class MongoDB\Driver\Exception\ExecutionTimeoutException 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] { } @@ -1339,7 +1688,7 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - Class [ final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { + Class [ class MongoDB\Driver\Exception\ConnectionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { - Constants [0] { } @@ -1396,72 +1745,7 @@ Extension [ extension #89 mongodb version 1.1.9 ] { } } - Interface [ interface MongoDB\BSON\Type ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [0] { - } - } - - Interface [ interface MongoDB\BSON\Serializable extends MongoDB\BSON\Type ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [1] { - Method [ abstract public method bsonSerialize ] { - - - Parameters [0] { - } - } - } - } - - Interface [ interface MongoDB\BSON\Unserializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [1] { - Method [ abstract public method bsonUnserialize ] { - - - Parameters [1] { - Parameter #0 [ array $data ] - } - } - } - } - - Interface [ interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { + Class [ class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1472,73 +1756,53 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static methods [0] { } - - Properties [0] { + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] } - - Methods [2] { - Method [ abstract public method bsonUnserialize ] { + - Methods [10] { + Method [ public method __construct ] { - - Parameters [1] { - Parameter #0 [ array $data ] + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ abstract public method bsonSerialize ] { - - - Parameters [0] { - } + Method [ public method __wakeup ] { } - } - } - - Class [ final class MongoDB\BSON\Binary implements MongoDB\BSON\Type ] { - - - Constants [7] { - Constant [ integer TYPE_GENERIC ] { 0 } - Constant [ integer TYPE_FUNCTION ] { 1 } - Constant [ integer TYPE_OLD_BINARY ] { 2 } - Constant [ integer TYPE_OLD_UUID ] { 3 } - Constant [ integer TYPE_UUID ] { 4 } - Constant [ integer TYPE_MD5 ] { 5 } - Constant [ integer TYPE_USER_DEFINED ] { 128 } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - Properties [0] { - } + Method [ final public method getMessage ] { + } - - Methods [4] { - Method [ final public method __construct ] { + Method [ final public method getCode ] { + } - - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $type ] - } + Method [ final public method getFile ] { } - Method [ final public method getData ] { + Method [ final public method getLine ] { + } - - Parameters [0] { - } + Method [ final public method getTrace ] { } - Method [ final public method getType ] { + Method [ final public method getPrevious ] { + } - - Parameters [0] { - } + Method [ final public method getTraceAsString ] { } - Method [ public method __wakeUp ] { + Method [ public method __toString ] { } } } - Class [ final class MongoDB\BSON\Javascript implements MongoDB\BSON\Type ] { + Class [ final class MongoDB\Driver\Exception\SSLConnectionException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1549,44 +1813,53 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static methods [0] { } - - Properties [0] { + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] } - - Methods [2] { - Method [ final public method __construct ] { + - Methods [10] { + Method [ public method __construct ] { - - Parameters [2] { - Parameter #0 [ $javascript ] - Parameter #1 [ $scope ] + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ public method __wakeUp ] { + Method [ public method __wakeup ] { } - } - } - Class [ final class MongoDB\BSON\MaxKey implements MongoDB\BSON\Type ] { + Method [ final public method getMessage ] { + } - - Constants [0] { - } + Method [ final public method getCode ] { + } - - Static properties [0] { - } + Method [ final public method getFile ] { + } - - Static methods [0] { - } + Method [ final public method getLine ] { + } - - Properties [0] { - } + Method [ final public method getTrace ] { + } - - Methods [1] { - Method [ public method __wakeUp ] { + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { } } } - Class [ final class MongoDB\BSON\MinKey implements MongoDB\BSON\Type ] { + Class [ abstract class MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { - Constants [0] { } @@ -1597,49 +1870,60 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static methods [0] { } - - Properties [0] { + - Properties [5] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + Property [ protected $writeResult ] } - - Methods [1] { - Method [ public method __wakeUp ] { + - Methods [11] { + Method [ final public method getWriteResult ] { + + - Parameters [0] { + } } - } - } - Class [ final class MongoDB\BSON\ObjectID implements MongoDB\BSON\Type ] { + Method [ public method __construct ] { - - Constants [0] { - } + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } - - Static properties [0] { - } + Method [ public method __wakeup ] { + } - - Static methods [0] { - } + Method [ final public method getMessage ] { + } - - Properties [0] { - } + Method [ final public method getCode ] { + } - - Methods [3] { - Method [ final public method __construct ] { + Method [ final public method getFile ] { + } - - Parameters [1] { - Parameter #0 [ $id ] - } + Method [ final public method getLine ] { } - Method [ final public method __toString ] { + Method [ final public method getTrace ] { + } - - Parameters [0] { - } + Method [ final public method getPrevious ] { } - Method [ public method __wakeUp ] { + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { } } } - Class [ final class MongoDB\BSON\Regex implements MongoDB\BSON\Type ] { + Class [ class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1650,42 +1934,60 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static methods [0] { } - - Properties [0] { + - Properties [5] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + Property [ protected $writeResult ] } - - Methods [5] { - Method [ final public method __construct ] { + - Methods [11] { + Method [ final public method getWriteResult ] { - - Parameters [2] { - Parameter #0 [ $pattern ] - Parameter #1 [ $flags ] + - Parameters [0] { } } - Method [ final public method getPattern ] { + Method [ public method __construct ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ final public method getFlags ] { + Method [ public method __wakeup ] { + } - - Parameters [0] { - } + Method [ final public method getMessage ] { } - Method [ final public method __toString ] { + Method [ final public method getCode ] { + } - - Parameters [0] { - } + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { } - Method [ public method __wakeUp ] { + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { } } } - Class [ final class MongoDB\BSON\Timestamp implements MongoDB\BSON\Type ] { + Class [ final class MongoDB\Driver\Exception\ExecutionTimeoutException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { - Constants [0] { } @@ -1696,30 +1998,53 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static methods [0] { } - - Properties [0] { + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] } - - Methods [3] { - Method [ final public method __construct ] { + - Methods [10] { + Method [ public method __construct ] { - - Parameters [2] { - Parameter #0 [ $increment ] - Parameter #1 [ $timestamp ] + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ final public method __toString ] { + Method [ public method __wakeup ] { + } - - Parameters [0] { - } + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { } - Method [ public method __wakeUp ] { + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { } } } - Class [ final class MongoDB\BSON\UTCDateTime implements MongoDB\BSON\Type ] { + Class [ final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - Constants [0] { } @@ -1730,30 +2055,48 @@ Extension [ extension #89 mongodb version 1.1.9 ] { - Static methods [0] { } - - Properties [0] { + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] } - - Methods [4] { - Method [ final public method __construct ] { + - Methods [10] { + Method [ public method __construct ] { - - Parameters [1] { - Parameter #0 [ $milliseconds ] + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ final public method __toString ] { + Method [ public method __wakeup ] { + } - - Parameters [0] { - } + Method [ final public method getMessage ] { } - Method [ final public method toDateTime ] { + Method [ final public method getCode ] { + } - - Parameters [0] { - } + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { } - Method [ public method __wakeUp ] { + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { } } } diff --git a/REFLECTION-DEV b/REFLECTION-DEV deleted file mode 100644 index 5e99dd6..0000000 --- a/REFLECTION-DEV +++ /dev/null @@ -1,2105 +0,0 @@ -Extension [ extension #155 mongodb version 1.2.0 ] { - - - Dependencies { - Dependency [ date (Required) ] - Dependency [ json (Required) ] - Dependency [ spl (Required) ] - Dependency [ standard (Required) ] - } - - - INI { - Entry [ mongodb.debug ] - Current = '' - } - } - - - Constants [2] { - Constant [ string MONGODB_VERSION ] { 1.2.0 } - Constant [ string MONGODB_STABILITY ] { stable } - } - - - Functions { - Function [ function MongoDB\BSON\fromPHP ] { - - - Parameters [1] { - Parameter #0 [ $value ] - } - } - Function [ function MongoDB\BSON\toPHP ] { - - - Parameters [1] { - Parameter #0 [ $bson ] - } - } - Function [ function MongoDB\BSON\toJSON ] { - - - Parameters [1] { - Parameter #0 [ $bson ] - } - } - Function [ function MongoDB\BSON\fromJSON ] { - - - Parameters [1] { - Parameter #0 [ $json ] - } - } - } - - - Classes [38] { - Interface [ interface MongoDB\BSON\Type ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [0] { - } - } - - Interface [ interface MongoDB\BSON\Serializable extends MongoDB\BSON\Type ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [1] { - Method [ abstract public method bsonSerialize ] { - - - Parameters [0] { - } - } - } - } - - Interface [ interface MongoDB\BSON\Unserializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [1] { - Method [ abstract public method bsonUnserialize ] { - - - Parameters [1] { - Parameter #0 [ array $data ] - } - } - } - } - - Interface [ interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [2] { - Method [ abstract public method bsonUnserialize ] { - - - Parameters [1] { - Parameter #0 [ array $data ] - } - } - - Method [ abstract public method bsonSerialize ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\BSON\Binary implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [7] { - Constant [ integer TYPE_GENERIC ] { 0 } - Constant [ integer TYPE_FUNCTION ] { 1 } - Constant [ integer TYPE_OLD_BINARY ] { 2 } - Constant [ integer TYPE_OLD_UUID ] { 3 } - Constant [ integer TYPE_UUID ] { 4 } - Constant [ integer TYPE_MD5 ] { 5 } - Constant [ integer TYPE_USER_DEFINED ] { 128 } - } - - - 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 [ $data ] - Parameter #1 [ $type ] - } - } - - Method [ final public method __toString ] { - - - Parameters [0] { - } - } - - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - - Method [ final public method getData ] { - - - Parameters [0] { - } - } - - Method [ final public method getType ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\BSON\Decimal128 implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } - } - - - Properties [0] { - } - - - Methods [5] { - Method [ final public method __construct ] { - - - Parameters [1] { - Parameter #0 [ $value ] - } - } - - Method [ final public method __toString ] { - - - Parameters [0] { - } - } - - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - } - } - - Class [ final class MongoDB\BSON\Javascript implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - 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 [ $javascript ] - Parameter #1 [ $scope ] - } - } - - Method [ final public method __toString ] { - - - Parameters [0] { - } - } - - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - - Method [ final public method getCode ] { - - - Parameters [0] { - } - } - - Method [ final public method getScope ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\BSON\MaxKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } - } - - - Properties [0] { - } - - - Methods [3] { - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - } - } - - Class [ final class MongoDB\BSON\MinKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } - } - - - Properties [0] { - } - - - Methods [3] { - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - } - } - - Class [ final class MongoDB\BSON\ObjectID implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } - } - - - Properties [0] { - } - - - Methods [6] { - Method [ final public method __construct ] { - - - Parameters [1] { - Parameter #0 [ $id ] - } - } - - Method [ final public method getTimestamp ] { - - - Parameters [0] { - } - } - - Method [ final public method __toString ] { - - - Parameters [0] { - } - } - - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - } - } - - Class [ final class MongoDB\BSON\Regex implements 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] { - } - } - - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - - Method [ final public method getPattern ] { - - - Parameters [0] { - } - } - - Method [ final public method getFlags ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\BSON\Timestamp implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } - } - - - Properties [0] { - } - - - Methods [5] { - Method [ final public method __construct ] { - - - Parameters [2] { - Parameter #0 [ $increment ] - Parameter #1 [ $timestamp ] - } - } - - Method [ final public method __toString ] { - - - Parameters [0] { - } - } - - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - } - } - - Class [ final class MongoDB\BSON\UTCDateTime implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method __set_state ] { - - - Parameters [1] { - Parameter #0 [ array $properties ] - } - } - } - - - Properties [0] { - } - - - Methods [6] { - Method [ final public method __construct ] { - - - Parameters [1] { - Parameter #0 [ $milliseconds ] - } - } - - Method [ final public method __toString ] { - - - Parameters [0] { - } - } - - Method [ final public method jsonSerialize ] { - - - Parameters [0] { - } - } - - Method [ final public method serialize ] { - - - Parameters [0] { - } - } - - Method [ final public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - - Method [ final public method toDateTime ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\Command ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [2] { - Method [ final public method __construct ] { - - - Parameters [1] { - Parameter #0 [ $document ] - } - } - - Method [ 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 private method __construct ] { - - - Parameters [0] { - } - } - - Method [ final public method setTypeMap ] { - - - Parameters [1] { - Parameter #0 [ array $typemap ] - } - } - - Method [ final public method toArray ] { - - - Parameters [0] { - } - } - - Method [ final public method getId ] { - - - Parameters [0] { - } - } - - Method [ final public method getServer ] { - - - Parameters [0] { - } - } - - Method [ final public method isDead ] { - - - Parameters [0] { - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\CursorId ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [3] { - Method [ final private method __construct ] { - - - Parameters [0] { - } - } - - Method [ final public method __toString ] { - - - Parameters [0] { - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\Manager ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [10] { - Method [ final public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $uri ] - Parameter #1 [ array $options ] - Parameter #2 [ array $driverOptions ] - } - } - - Method [ final public method executeCommand ] { - - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] - } - } - - Method [ final public method executeQuery ] { - - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\Query $zquery ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] - } - } - - Method [ final public method executeBulkWrite ] { - - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] - Parameter #2 [ MongoDB\Driver\WriteConcern or NULL $writeConcern ] - } - } - - Method [ final public method getReadConcern ] { - - - Parameters [0] { - } - } - - Method [ final public method getReadPreference ] { - - - Parameters [0] { - } - } - - Method [ final public method getServers ] { - - - Parameters [0] { - } - } - - Method [ final public method getWriteConcern ] { - - - Parameters [0] { - } - } - - Method [ final public method selectServer ] { - - - Parameters [1] { - Parameter #0 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\Query ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [2] { - Method [ final public method __construct ] { - - - Parameters [2] { - Parameter #0 [ $filter ] - Parameter #1 [ array or NULL $options ] - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\ReadConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - - Constants [3] { - Constant [ string LOCAL ] { local } - Constant [ string MAJORITY ] { majority } - Constant [ string LINEARIZABLE ] { linearizable } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [3] { - Method [ final public method __construct ] { - - - Parameters [1] { - Parameter #0 [ $level ] - } - } - - Method [ final public method getLevel ] { - - - Parameters [0] { - } - } - - Method [ final public method bsonSerialize ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - - Constants [7] { - Constant [ integer RP_PRIMARY ] { 1 } - Constant [ integer RP_PRIMARY_PREFERRED ] { 5 } - Constant [ integer RP_SECONDARY ] { 2 } - Constant [ integer RP_SECONDARY_PREFERRED ] { 6 } - Constant [ integer RP_NEAREST ] { 10 } - Constant [ integer NO_MAX_STALENESS ] { -1 } - Constant [ integer SMALLEST_MAX_STALENESS_SECONDS ] { 90 } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [5] { - Method [ final public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $mode ] - Parameter #1 [ array or NULL $tagSets ] - Parameter #2 [ array or NULL $options ] - } - } - - Method [ final public method getMaxStalenessSeconds ] { - - - Parameters [0] { - } - } - - Method [ final public method getMode ] { - - - Parameters [0] { - } - } - - Method [ final public method getTagSets ] { - - - Parameters [0] { - } - } - - Method [ final public method bsonSerialize ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\Server ] { - - - Constants [9] { - Constant [ integer TYPE_UNKNOWN ] { 0 } - Constant [ integer TYPE_STANDALONE ] { 1 } - Constant [ integer TYPE_MONGOS ] { 2 } - Constant [ integer TYPE_POSSIBLE_PRIMARY ] { 3 } - Constant [ integer TYPE_RS_PRIMARY ] { 4 } - Constant [ integer TYPE_RS_SECONDARY ] { 5 } - Constant [ integer TYPE_RS_ARBITER ] { 6 } - Constant [ integer TYPE_RS_OTHER ] { 7 } - Constant [ integer TYPE_RS_GHOST ] { 8 } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [16] { - Method [ final private method __construct ] { - - - Parameters [0] { - } - } - - Method [ final public method executeCommand ] { - - - Parameters [3] { - Parameter #0 [ $db ] - Parameter #1 [ MongoDB\Driver\Command $command ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] - } - } - - Method [ final public method executeQuery ] { - - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\Query $zquery ] - Parameter #2 [ MongoDB\Driver\ReadPreference or NULL $readPreference ] - } - } - - Method [ final public method executeBulkWrite ] { - - - Parameters [3] { - Parameter #0 [ $namespace ] - Parameter #1 [ MongoDB\Driver\BulkWrite $zbulk ] - Parameter #2 [ MongoDB\Driver\WriteConcern or NULL $writeConcern ] - } - } - - Method [ final public method getHost ] { - - - Parameters [0] { - } - } - - Method [ final public method getTags ] { - - - Parameters [0] { - } - } - - Method [ final public method getInfo ] { - - - Parameters [0] { - } - } - - Method [ final public method getLatency ] { - - - Parameters [0] { - } - } - - Method [ final public method getPort ] { - - - Parameters [0] { - } - } - - Method [ final public method getType ] { - - - Parameters [0] { - } - } - - Method [ final public method isPrimary ] { - - - Parameters [0] { - } - } - - Method [ final public method isSecondary ] { - - - Parameters [0] { - } - } - - Method [ final public method isArbiter ] { - - - Parameters [0] { - } - } - - Method [ final public method isHidden ] { - - - Parameters [0] { - } - } - - Method [ final public method isPassive ] { - - - Parameters [0] { - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\BulkWrite implements Countable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - 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 [ 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 [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - - - Constants [1] { - Constant [ string MAJORITY ] { majority } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [5] { - Method [ final public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $w ] - Parameter #1 [ $wtimeout ] - Parameter #2 [ $journal ] - } - } - - Method [ final public method getW ] { - - - Parameters [0] { - } - } - - Method [ final public method getWtimeout ] { - - - Parameters [0] { - } - } - - Method [ final public method getJournal ] { - - - Parameters [0] { - } - } - - Method [ final public method bsonSerialize ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\WriteConcernError ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [5] { - Method [ final private method __construct ] { - - - Parameters [0] { - } - } - - Method [ final public method getCode ] { - - - Parameters [0] { - } - } - - Method [ final public method getInfo ] { - - - Parameters [0] { - } - } - - Method [ final public method getMessage ] { - - - Parameters [0] { - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\WriteError ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [6] { - Method [ final private method __construct ] { - - - Parameters [0] { - } - } - - Method [ final public method getCode ] { - - - Parameters [0] { - } - } - - Method [ final public method getIndex ] { - - - Parameters [0] { - } - } - - Method [ final public method getMessage ] { - - - Parameters [0] { - } - } - - Method [ final public method getInfo ] { - - - Parameters [0] { - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Class [ final class MongoDB\Driver\WriteResult ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [12] { - Method [ final private method __construct ] { - - - Parameters [0] { - } - } - - Method [ final public method getInsertedCount ] { - - - Parameters [0] { - } - } - - Method [ final public method getMatchedCount ] { - - - Parameters [0] { - } - } - - Method [ final public method getModifiedCount ] { - - - Parameters [0] { - } - } - - Method [ final public method getDeletedCount ] { - - - Parameters [0] { - } - } - - Method [ final public method getUpsertedCount ] { - - - Parameters [0] { - } - } - - Method [ final public method getServer ] { - - - Parameters [0] { - } - } - - 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 [ public method __wakeup ] { - - - Parameters [0] { - } - } - } - } - - Interface [ interface MongoDB\Driver\Exception\Exception ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [0] { - } - } - - Class [ class MongoDB\Driver\Exception\LogicException extends LogicException 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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - 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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - Class [ class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException 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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - Class [ class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException 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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - 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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - Class [ 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 [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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - Class [ 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 [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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - 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 [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] - } - } - - Method [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - Class [ class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements Throwable, MongoDB\Driver\Exception\Exception ] { - - - 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 [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] - } - } - - Method [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - Class [ final class MongoDB\Driver\Exception\ExecutionTimeoutException 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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - - Class [ 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 [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 [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - } -} - diff --git a/php-pecl-mongodb-dev.spec b/php-pecl-mongodb-dev.spec deleted file mode 100644 index 12e1326..0000000 --- a/php-pecl-mongodb-dev.spec +++ /dev/null @@ -1,429 +0,0 @@ -# remirepo spec file for php-pecl-mongodb -# -# Copyright (c) 2015-2016 Remi Collet -# License: CC-BY-SA -# http://creativecommons.org/licenses/by-sa/4.0/ -# -# Please, preserve the changelog entries -# -%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 -#global prever alpha3 - -%ifarch x86_64 -%global with_tests 0%{?_with_tests:1} -%else -# See https://jira.mongodb.org/browse/CDRIVER-1186 -# 32-bit MongoDB support was officially deprecated -# in MongoDB 3.2, and support is being removed in 3.4. -%global with_tests 0%{?_with_tests:1} -%endif - -%if 0%{?fedora} >= 26 -%global with_syslib 1 -%else -%global with_syslib 0 -%endif - -Summary: MongoDB driver for PHP -Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 1.2.0 -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 - -# Fix tests when using system libraries -Patch0: %{pecl_name}-tests.patch - -BuildRequires: %{?scl_prefix}php-devel > 5.4 -BuildRequires: %{?scl_prefix}php-pear -BuildRequires: %{?scl_prefix}php-json -BuildRequires: cyrus-sasl-devel -BuildRequires: openssl-devel -%if %{with_syslib} -BuildRequires: pkgconfig(libbson-1.0) >= 1.5 -BuildRequires: pkgconfig(libmongoc-1.0) >= 1.5 -%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 - -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} -# Other third party repo stuff -Obsoletes: php53-pecl-%{pecl_name} <= %{version} -Obsoletes: php53u-pecl-%{pecl_name} <= %{version} -Obsoletes: php54-pecl-%{pecl_name} <= %{version} -Obsoletes: php54w-pecl-%{pecl_name} <= %{version} -%if "%{php_version}" > "5.5" -Obsoletes: php55u-pecl-%{pecl_name} <= %{version} -Obsoletes: php55w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "5.6" -Obsoletes: php56u-pecl-%{pecl_name} <= %{version} -Obsoletes: php56w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.0" -Obsoletes: php70u-pecl-%{pecl_name} <= %{version} -Obsoletes: php70w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.1" -Obsoletes: php71u-pecl-%{pecl_name} <= %{version} -Obsoletes: php71w-pecl-%{pecl_name} <= %{version} -%endif -%endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%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}-%{version}%{?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 -%if %{with_syslib} -%patch0 -p0 -b .rpm -%endif - -# Sanity check, really often broken -extver=$(sed -n '/#define MONGODB_VERSION_S/{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}}. - 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 -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/libbson - rm -r src/libmongoc - - %configure \ - --with-php-config=%{_bindir}/${1}-config \ - --with-libbson \ - --with-libmongoc \ - --enable-mongodb - -%else - - %configure \ - --with-php-config=%{_bindir}/${1}-config \ - --enable-mongodb -%endif - - make %{?_smp_mflags} -} - -cd NTS -peclbuild php - -%if %{with_zts} -cd ../ZTS -peclbuild zts-php -%endif - - -%install -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 - - -%if 0%{?fedora} < 24 -# when pear installed alone, after us -%triggerin -- %{?scl_prefix}php-pear -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -# posttrans as pear can be installed after us -%posttrans -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -%postun -if [ $1 -eq 0 -a -x %{__pecl} ] ; then - %{pecl_uninstall} %{pecl_name} >/dev/null || : -fi -%endif - - -%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 - rm ?TS/tests/manager/manager-debug-001.phpt - rm ?TS/tests/manager/manager-executequery-without-assignment.phpt - rm ?TS/tests/standalone/bug0487-002.phpt - rm ?TS/tests/standalone/bug0655.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 - 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 Nov 29 2016 Remi Collet - 1.2.0-1 -- update to 1.2.0 -- internal dependency on date, json, spl and standard - -* Wed Sep 28 2016 Remi Collet - 1.2.0-0.2.alpha3 -- update to 1.2.0alpha3 -- use bundled libbson and libmongoc - -* Mon Aug 8 2016 Remi Collet - 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 - 1.1.8-4 -- License is ASL 2.0, from review #1269056 - -* Wed Jul 06 2016 Remi Collet - 1.1.8-2 -- Update to 1.1.8 - -* Fri Jun 3 2016 Remi Collet - 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 - 1.1.7-2 -- Update to 1.1.7 - -* Thu Apr 7 2016 Remi Collet - 1.1.6-2 -- Update to 1.1.6 - -* Thu Mar 31 2016 Remi Collet - 1.1.5-4 -- load after smbclient to workaround - https://jira.mongodb.org/browse/PHPC-658 - -* Fri Mar 18 2016 Remi Collet - 1.1.5-2 -- Update to 1.1.5 (stable) - -* Thu Mar 10 2016 Remi Collet - 1.1.4-2 -- Update to 1.1.4 (stable) - -* Sat Mar 5 2016 Remi Collet - 1.1.3-2 -- Update to 1.1.3 (stable) - -* Thu Jan 07 2016 Remi Collet - 1.1.2-2 -- Update to 1.1.2 (stable) - -* Thu Dec 31 2015 Remi Collet - 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 - 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 - 1.1.0-1 -- Update to 1.1.0 (stable) -- raise dependency on libmongoc >= 1.3.0 - -* Tue Dec 8 2015 Remi Collet - 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 - 1.0.0-2 -- update to 1.0.0 (stable) - -* Tue Oct 27 2015 Remi Collet - 1.0.0-0.5.RC0 -- Update to 1.0.0RC0 (beta) - -* Tue Oct 6 2015 Remi Collet - 1.0.0-0.3-beta2 -- Update to 1.0.0beta2 (beta) - -* Fri Sep 11 2015 Remi Collet - 1.0.0-0.2-beta1 -- Update to 1.0.0beta1 (beta) - -* Mon Aug 31 2015 Remi Collet - 1.0.0-0.1.alpha2 -- Update to 1.0.0alpha2 (alpha) -- buid with system libmongoc - -* Thu May 07 2015 Remi Collet - 0.6.3-1 -- Update to 0.6.3 (alpha) - -* Wed May 06 2015 Remi Collet - 0.6.2-1 -- Update to 0.6.2 (alpha) - -* Wed May 06 2015 Remi Collet - 0.6.0-1 -- Update to 0.6.0 (alpha) - -* Sat Apr 25 2015 Remi Collet - 0.5.1-1 -- Update to 0.5.1 (alpha) - -* Thu Apr 23 2015 Remi Collet - 0.5.0-2 -- build with system libbson -- open https://jira.mongodb.org/browse/PHPC-259 - -* Wed Apr 22 2015 Remi Collet - 0.5.0-1 -- initial package, version 0.5.0 (alpha) - diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec index 8f55874..12e1326 100644 --- a/php-pecl-mongodb.spec +++ b/php-pecl-mongodb.spec @@ -7,11 +7,7 @@ # Please, preserve the changelog entries # %if 0%{?scl:1} -%if "%{scl}" == "rh-php56" -%global sub_prefix more-php56- -%else %global sub_prefix %{scl_prefix} -%endif %scl_package php-pecl-mongodb %else %global _root_prefix %{_prefix} @@ -25,9 +21,7 @@ # After 40-smbclient.ini, see https://jira.mongodb.org/browse/PHPC-658 %global ini_name 50-%{pecl_name}.ini %endif -#global prever RC0 -# Still needed because of some private API -%global buildver %(pkg-config --silence-errors --modversion libmongoc-priv 2>/dev/null || echo 65536) +#global prever alpha3 %ifarch x86_64 %global with_tests 0%{?_with_tests:1} @@ -38,9 +32,15 @@ %global with_tests 0%{?_with_tests:1} %endif +%if 0%{?fedora} >= 26 +%global with_syslib 1 +%else +%global with_syslib 0 +%endif + Summary: MongoDB driver for PHP Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 1.1.9 +Version: 1.2.0 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: ASL 2.0 Group: Development/Languages @@ -52,19 +52,20 @@ Patch0: %{pecl_name}-tests.patch BuildRequires: %{?scl_prefix}php-devel > 5.4 BuildRequires: %{?scl_prefix}php-pear +BuildRequires: %{?scl_prefix}php-json BuildRequires: cyrus-sasl-devel BuildRequires: openssl-devel -BuildRequires: pkgconfig(libbson-1.0) >= 1.3.0 -BuildRequires: pkgconfig(libmongoc-1.0) >= 1.3.0 -BuildRequires: pkgconfig(libmongoc-priv) >= 1.3.0 -BuildRequires: pkgconfig(libmongoc-priv) < 1.4 +%if %{with_syslib} +BuildRequires: pkgconfig(libbson-1.0) >= 1.5 +BuildRequires: pkgconfig(libmongoc-1.0) >= 1.5 +%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: mongo-c-driver%{?_isa} >= %{buildver} +Requires: %{?scl_prefix}php-json%{?_isa} %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} # Don't provide php-mongodb which is the pure PHP library @@ -124,7 +125,9 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%if %{with_syslib} %patch0 -p0 -b .rpm +%endif # Sanity check, really often broken extver=$(sed -n '/#define MONGODB_VERSION_S/{s/.* "//;s/".*$//;p}' php_phongo.h) @@ -153,6 +156,7 @@ EOF 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/libbson @@ -164,6 +168,13 @@ peclbuild() { --with-libmongoc \ --enable-mongodb +%else + + %configure \ + --with-php-config=%{_bindir}/${1}-config \ + --enable-mongodb +%endif + make %{?_smp_mflags} } @@ -220,14 +231,17 @@ fi %check +OPT="-n" +[ -f %{php_extdir}/json.so ] && OPT="$OPT -d extension=json.so" + : Minimal load test for NTS extension -%{__php} --no-php-ini \ +%{__php} $OPT \ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --modules | grep %{pecl_name} %if %{with_zts} : Minimal load test for ZTS extension -%{__ztsphp} --no-php-ini \ +%{__ztsphp} $OPT \ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep %{pecl_name} %endif @@ -236,6 +250,7 @@ fi 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 @@ -250,10 +265,9 @@ mongod \ if [ -s server.pid ] ; then : Drop known to fail tests -%if 1 +%if "%{mongo_version}" < "3.4" ### With mongodb 3.2 rm ?TS/tests/manager/manager-debug-001.phpt - rm ?TS/tests/manager/manager-debug-003.phpt rm ?TS/tests/manager/manager-executequery-without-assignment.phpt rm ?TS/tests/standalone/bug0487-002.phpt rm ?TS/tests/standalone/bug0655.phpt @@ -276,7 +290,7 @@ if [ -s server.pid ] ; then pushd NTS TEST_PHP_EXECUTABLE=%{__php} \ - TEST_PHP_ARGS="-n -d extension=json.so -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ + 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 @@ -285,7 +299,7 @@ if [ -s server.pid ] ; then %if %{with_zts} pushd ZTS TEST_PHP_EXECUTABLE=%{__ztsphp} \ - TEST_PHP_ARGS="-n -d extension=json.so -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ + 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 @@ -317,11 +331,17 @@ exit $ret %changelog -* Fri Oct 21 2016 Remi Collet - 1.1.9-1 -- Update to 1.1.9 (no change) +* Tue Nov 29 2016 Remi Collet - 1.2.0-1 +- update to 1.2.0 +- internal dependency on date, json, spl and standard + +* Wed Sep 28 2016 Remi Collet - 1.2.0-0.2.alpha3 +- update to 1.2.0alpha3 +- use bundled libbson and libmongoc -* Wed Sep 14 2016 Remi Collet - 1.1.8-5 -- rebuild for PHP 7.1 new API version +* Mon Aug 8 2016 Remi Collet - 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 - 1.1.8-4 - License is ASL 2.0, from review #1269056 -- cgit