diff options
| -rw-r--r-- | REFLECTION | 1117 | ||||
| -rw-r--r-- | REFLECTION-DEV | 2105 | ||||
| -rw-r--r-- | php-pecl-mongodb-dev.spec | 429 | ||||
| -rw-r--r-- | php-pecl-mongodb.spec | 66 | 
4 files changed, 773 insertions, 2944 deletions
@@ -1,4 +1,11 @@ -Extension [ <persistent> extension #89 mongodb version 1.1.9 ] { +Extension [ <persistent> extension #155 mongodb version 1.2.0 ] { + +  - Dependencies { +    Dependency [ date (Required) ] +    Dependency [ json (Required) ] +    Dependency [ spl (Required) ] +    Dependency [ standard (Required) ] +  }    - INI {      Entry [ mongodb.debug <ALL> ] @@ -6,10 +13,9 @@ Extension [ <persistent> 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,7 +45,630 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {      }    } -  - Classes [37] { +  - Classes [38] { +    Interface [ <internal:mongodb> interface MongoDB\BSON\Type ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [0] { +      } + +      - Properties [0] { +      } + +      - Methods [0] { +      } +    } + +    Interface [ <internal:mongodb> interface MongoDB\BSON\Serializable extends MongoDB\BSON\Type ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [0] { +      } + +      - Properties [0] { +      } + +      - Methods [1] { +        Method [ <internal:mongodb> abstract public method bsonSerialize ] { + +          - Parameters [0] { +          } +        } +      } +    } + +    Interface [ <internal:mongodb> interface MongoDB\BSON\Unserializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [0] { +      } + +      - Properties [0] { +      } + +      - Methods [1] { +        Method [ <internal:mongodb> abstract public method bsonUnserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $data ] +          } +        } +      } +    } + +    Interface [ <internal:mongodb> interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [0] { +      } + +      - Properties [0] { +      } + +      - Methods [2] { +        Method [ <internal:mongodb, inherits MongoDB\BSON\Unserializable> abstract public method bsonUnserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $data ] +          } +        } + +        Method [ <internal:mongodb, inherits MongoDB\BSON\Serializable> abstract public method bsonSerialize ] { + +          - Parameters [0] { +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\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 [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [7] { +        Method [ <internal:mongodb, ctor> final public method __construct ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $data ] +            Parameter #1 [ <required> $type ] +          } +        } + +        Method [ <internal:mongodb> final public method __toString ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } + +        Method [ <internal:mongodb> final public method getData ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb> final public method getType ] { + +          - Parameters [0] { +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\Decimal128 implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [5] { +        Method [ <internal:mongodb, ctor> final public method __construct ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $value ] +          } +        } + +        Method [ <internal:mongodb> final public method __toString ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\Javascript implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [7] { +        Method [ <internal:mongodb, ctor> final public method __construct ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $javascript ] +            Parameter #1 [ <optional> $scope ] +          } +        } + +        Method [ <internal:mongodb> final public method __toString ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } + +        Method [ <internal:mongodb> final public method getCode ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb> final public method getScope ] { + +          - Parameters [0] { +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\MaxKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [3] { +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\MinKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [3] { +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\ObjectID implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [6] { +        Method [ <internal:mongodb, ctor> final public method __construct ] { + +          - Parameters [1] { +            Parameter #0 [ <optional> $id ] +          } +        } + +        Method [ <internal:mongodb> final public method getTimestamp ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb> final public method __toString ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\Regex implements MongoDB\BSON\Type, Serializable, JsonSerializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [7] { +        Method [ <internal:mongodb, ctor> final public method __construct ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $pattern ] +            Parameter #1 [ <required> $flags ] +          } +        } + +        Method [ <internal:mongodb> final public method __toString ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } + +        Method [ <internal:mongodb> final public method getPattern ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb> final public method getFlags ] { + +          - Parameters [0] { +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\Timestamp implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [5] { +        Method [ <internal:mongodb, ctor> final public method __construct ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $increment ] +            Parameter #1 [ <required> $timestamp ] +          } +        } + +        Method [ <internal:mongodb> final public method __toString ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } +      } +    } + +    Class [ <internal:mongodb> final class MongoDB\BSON\UTCDateTime implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { + +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:mongodb> static public method __set_state ] { + +          - Parameters [1] { +            Parameter #0 [ <required> array $properties ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [6] { +        Method [ <internal:mongodb, ctor> final public method __construct ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $milliseconds ] +          } +        } + +        Method [ <internal:mongodb> final public method __toString ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { + +          - Parameters [0] { +          } +        } + +        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $serialized ] +          } +        } + +        Method [ <internal:mongodb> final public method toDateTime ] { + +          - Parameters [0] { +          } +        } +      } +    } +      Class [ <internal:mongodb> final class MongoDB\Driver\Command ] {        - Constants [0] { @@ -62,7 +691,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -83,6 +715,9 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Methods [7] {          Method [ <internal:mongodb, ctor> final private method __construct ] { + +          - Parameters [0] { +          }          }          Method [ <internal:mongodb> final public method setTypeMap ] { @@ -116,7 +751,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -137,6 +775,9 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Methods [3] {          Method [ <internal:mongodb, ctor> final private method __construct ] { + +          - Parameters [0] { +          }          }          Method [ <internal:mongodb> final public method __toString ] { @@ -145,7 +786,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -232,7 +876,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -256,20 +903,24 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            - Parameters [2] {              Parameter #0 [ <required> $filter ] -            Parameter #1 [ <optional> array $options ] +            Parameter #1 [ <optional> array or NULL $options ]            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } -    Class [ <internal:mongodb> final class MongoDB\Driver\ReadConcern ] { +    Class [ <internal:mongodb> final class MongoDB\Driver\ReadConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { -      - Constants [2] { +      - Constants [3] {          Constant [ string LOCAL ] { local }          Constant [ string MAJORITY ] { majority } +        Constant [ string LINEARIZABLE ] { linearizable }        }        - Static properties [0] { @@ -281,7 +932,7 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Properties [0] {        } -      - Methods [2] { +      - Methods [3] {          Method [ <internal:mongodb, ctor> final public method __construct ] {            - Parameters [1] { @@ -294,17 +945,25 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            - Parameters [0] {            }          } + +        Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] { + +          - Parameters [0] { +          } +        }        }      } -    Class [ <internal:mongodb> final class MongoDB\Driver\ReadPreference ] { +    Class [ <internal:mongodb> final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { -      - Constants [5] { +      - 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] { @@ -316,12 +975,19 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Properties [0] {        } -      - Methods [3] { +      - Methods [5] {          Method [ <internal:mongodb, ctor> final public method __construct ] { -          - Parameters [2] { +          - Parameters [3] {              Parameter #0 [ <required> $mode ]              Parameter #1 [ <optional> array or NULL $tagSets ] +            Parameter #2 [ <optional> array or NULL $options ] +          } +        } + +        Method [ <internal:mongodb> final public method getMaxStalenessSeconds ] { + +          - Parameters [0] {            }          } @@ -336,6 +1002,12 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            - Parameters [0] {            }          } + +        Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] { + +          - Parameters [0] { +          } +        }        }      } @@ -364,6 +1036,9 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Methods [16] {          Method [ <internal:mongodb, ctor> final private method __construct ] { + +          - Parameters [0] { +          }          }          Method [ <internal:mongodb> final public method executeCommand ] { @@ -459,7 +1134,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -516,12 +1194,15 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } -    Class [ <internal:mongodb> final class MongoDB\Driver\WriteConcern ] { +    Class [ <internal:mongodb> final class MongoDB\Driver\WriteConcern implements MongoDB\BSON\Serializable, MongoDB\BSON\Type ] {        - Constants [1] {          Constant [ string MAJORITY ] { majority } @@ -536,7 +1217,7 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Properties [0] {        } -      - Methods [4] { +      - Methods [5] {          Method [ <internal:mongodb, ctor> final public method __construct ] {            - Parameters [3] { @@ -563,6 +1244,12 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            - Parameters [0] {            }          } + +        Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] { + +          - Parameters [0] { +          } +        }        }      } @@ -582,6 +1269,9 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Methods [5] {          Method [ <internal:mongodb, ctor> final private method __construct ] { + +          - Parameters [0] { +          }          }          Method [ <internal:mongodb> final public method getCode ] { @@ -602,7 +1292,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -623,6 +1316,9 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Methods [6] {          Method [ <internal:mongodb, ctor> final private method __construct ] { + +          - Parameters [0] { +          }          }          Method [ <internal:mongodb> final public method getCode ] { @@ -649,7 +1345,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -670,6 +1369,9 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {        - Methods [12] {          Method [ <internal:mongodb, ctor> final private method __construct ] { + +          - Parameters [0] { +          }          }          Method [ <internal:mongodb> final public method getInsertedCount ] { @@ -732,7 +1434,10 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {            }          } -        Method [ <internal:mongodb> public method __wakeUp ] { +        Method [ <internal:mongodb> public method __wakeup ] { + +          - Parameters [0] { +          }          }        }      } @@ -1395,368 +2100,6 @@ Extension [ <persistent> extension #89 mongodb version 1.1.9 ] {          }        }      } - -    Interface [ <internal:mongodb> interface MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [0] { -      } -    } - -    Interface [ <internal:mongodb> interface MongoDB\BSON\Serializable extends MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [1] { -        Method [ <internal:mongodb> abstract public method bsonSerialize ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Interface [ <internal:mongodb> interface MongoDB\BSON\Unserializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [1] { -        Method [ <internal:mongodb> abstract public method bsonUnserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $data ] -          } -        } -      } -    } - -    Interface [ <internal:mongodb> interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [2] { -        Method [ <internal:mongodb, inherits MongoDB\BSON\Unserializable> abstract public method bsonUnserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $data ] -          } -        } - -        Method [ <internal:mongodb, inherits MongoDB\BSON\Serializable> abstract public method bsonSerialize ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\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] { -      } - -      - Methods [4] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $data ] -            Parameter #1 [ <required> $type ] -          } -        } - -        Method [ <internal:mongodb> final public method getData ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getType ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\Javascript implements MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [2] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $javascript ] -            Parameter #1 [ <optional> $scope ] -          } -        } - -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\MaxKey implements MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [1] { -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\MinKey implements MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [1] { -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\ObjectID implements MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [3] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <optional> $id ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\Regex implements MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [5] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $pattern ] -            Parameter #1 [ <required> $flags ] -          } -        } - -        Method [ <internal:mongodb> final public method getPattern ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getFlags ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\Timestamp implements MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [3] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $increment ] -            Parameter #1 [ <required> $timestamp ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\UTCDateTime implements MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [4] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $milliseconds ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method toDateTime ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeUp ] { -        } -      } -    }    }  } 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 [ <persistent> extension #155 mongodb version 1.2.0 ] { - -  - Dependencies { -    Dependency [ date (Required) ] -    Dependency [ json (Required) ] -    Dependency [ spl (Required) ] -    Dependency [ standard (Required) ] -  } - -  - INI { -    Entry [ mongodb.debug <ALL> ] -      Current = '' -    } -  } - -  - Constants [2] { -    Constant [ string MONGODB_VERSION ] { 1.2.0 } -    Constant [ string MONGODB_STABILITY ] { stable } -  } - -  - Functions { -    Function [ <internal:mongodb> function MongoDB\BSON\fromPHP ] { - -      - Parameters [1] { -        Parameter #0 [ <required> $value ] -      } -    } -    Function [ <internal:mongodb> function MongoDB\BSON\toPHP ] { - -      - Parameters [1] { -        Parameter #0 [ <required> $bson ] -      } -    } -    Function [ <internal:mongodb> function MongoDB\BSON\toJSON ] { - -      - Parameters [1] { -        Parameter #0 [ <required> $bson ] -      } -    } -    Function [ <internal:mongodb> function MongoDB\BSON\fromJSON ] { - -      - Parameters [1] { -        Parameter #0 [ <required> $json ] -      } -    } -  } - -  - Classes [38] { -    Interface [ <internal:mongodb> interface MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [0] { -      } -    } - -    Interface [ <internal:mongodb> interface MongoDB\BSON\Serializable extends MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [1] { -        Method [ <internal:mongodb> abstract public method bsonSerialize ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Interface [ <internal:mongodb> interface MongoDB\BSON\Unserializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [1] { -        Method [ <internal:mongodb> abstract public method bsonUnserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $data ] -          } -        } -      } -    } - -    Interface [ <internal:mongodb> interface MongoDB\BSON\Persistable extends MongoDB\BSON\Unserializable, MongoDB\BSON\Serializable, MongoDB\BSON\Type ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [2] { -        Method [ <internal:mongodb, inherits MongoDB\BSON\Unserializable> abstract public method bsonUnserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $data ] -          } -        } - -        Method [ <internal:mongodb, inherits MongoDB\BSON\Serializable> abstract public method bsonSerialize ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\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 [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [7] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $data ] -            Parameter #1 [ <required> $type ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } - -        Method [ <internal:mongodb> final public method getData ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getType ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\Decimal128 implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [5] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $value ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\Javascript implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [7] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $javascript ] -            Parameter #1 [ <optional> $scope ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } - -        Method [ <internal:mongodb> final public method getCode ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getScope ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\MaxKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [3] { -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\MinKey implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [3] { -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\ObjectID implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [6] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <optional> $id ] -          } -        } - -        Method [ <internal:mongodb> final public method getTimestamp ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\Regex implements MongoDB\BSON\Type, Serializable, JsonSerializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [7] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $pattern ] -            Parameter #1 [ <required> $flags ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } - -        Method [ <internal:mongodb> final public method getPattern ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getFlags ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\Timestamp implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [5] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $increment ] -            Parameter #1 [ <required> $timestamp ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\BSON\UTCDateTime implements JsonSerializable, MongoDB\BSON\Type, Serializable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [1] { -        Method [ <internal:mongodb> static public method __set_state ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $properties ] -          } -        } -      } - -      - Properties [0] { -      } - -      - Methods [6] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $milliseconds ] -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype JsonSerializable> final public method jsonSerialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method serialize ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype Serializable> final public method unserialize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $serialized ] -          } -        } - -        Method [ <internal:mongodb> final public method toDateTime ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\Command ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [2] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $document ] -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> <iterateable> final class MongoDB\Driver\Cursor implements Traversable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [7] { -        Method [ <internal:mongodb, ctor> final private method __construct ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method setTypeMap ] { - -          - Parameters [1] { -            Parameter #0 [ <required> array $typemap ] -          } -        } - -        Method [ <internal:mongodb> final public method toArray ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getId ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getServer ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method isDead ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\CursorId ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [3] { -        Method [ <internal:mongodb, ctor> final private method __construct ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method __toString ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\Manager ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [10] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $uri ] -            Parameter #1 [ <optional> array $options ] -            Parameter #2 [ <optional> array $driverOptions ] -          } -        } - -        Method [ <internal:mongodb> final public method executeCommand ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $db ] -            Parameter #1 [ <required> MongoDB\Driver\Command $command ] -            Parameter #2 [ <optional> MongoDB\Driver\ReadPreference or NULL $readPreference ] -          } -        } - -        Method [ <internal:mongodb> final public method executeQuery ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $namespace ] -            Parameter #1 [ <required> MongoDB\Driver\Query $zquery ] -            Parameter #2 [ <optional> MongoDB\Driver\ReadPreference or NULL $readPreference ] -          } -        } - -        Method [ <internal:mongodb> final public method executeBulkWrite ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $namespace ] -            Parameter #1 [ <required> MongoDB\Driver\BulkWrite $zbulk ] -            Parameter #2 [ <optional> MongoDB\Driver\WriteConcern or NULL $writeConcern ] -          } -        } - -        Method [ <internal:mongodb> final public method getReadConcern ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getReadPreference ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getServers ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getWriteConcern ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method selectServer ] { - -          - Parameters [1] { -            Parameter #0 [ <required> MongoDB\Driver\ReadPreference or NULL $readPreference ] -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\Query ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [2] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $filter ] -            Parameter #1 [ <optional> array or NULL $options ] -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> 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 [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <optional> $level ] -          } -        } - -        Method [ <internal:mongodb> final public method getLevel ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> 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 [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $mode ] -            Parameter #1 [ <optional> array or NULL $tagSets ] -            Parameter #2 [ <optional> array or NULL $options ] -          } -        } - -        Method [ <internal:mongodb> final public method getMaxStalenessSeconds ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getMode ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getTagSets ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> 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 [ <internal:mongodb, ctor> final private method __construct ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method executeCommand ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $db ] -            Parameter #1 [ <required> MongoDB\Driver\Command $command ] -            Parameter #2 [ <optional> MongoDB\Driver\ReadPreference or NULL $readPreference ] -          } -        } - -        Method [ <internal:mongodb> final public method executeQuery ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $namespace ] -            Parameter #1 [ <required> MongoDB\Driver\Query $zquery ] -            Parameter #2 [ <optional> MongoDB\Driver\ReadPreference or NULL $readPreference ] -          } -        } - -        Method [ <internal:mongodb> final public method executeBulkWrite ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $namespace ] -            Parameter #1 [ <required> MongoDB\Driver\BulkWrite $zbulk ] -            Parameter #2 [ <optional> MongoDB\Driver\WriteConcern or NULL $writeConcern ] -          } -        } - -        Method [ <internal:mongodb> final public method getHost ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getTags ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getInfo ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getLatency ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getPort ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getType ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method isPrimary ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method isSecondary ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method isArbiter ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method isHidden ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method isPassive ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\BulkWrite implements Countable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [6] { -        Method [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [1] { -            Parameter #0 [ <optional> array or NULL $options ] -          } -        } - -        Method [ <internal:mongodb> final public method insert ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $document ] -          } -        } - -        Method [ <internal:mongodb> final public method update ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $query ] -            Parameter #1 [ <required> $newObj ] -            Parameter #2 [ <optional> array or NULL $updateOptions ] -          } -        } - -        Method [ <internal:mongodb> final public method delete ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $query ] -            Parameter #1 [ <optional> array or NULL $deleteOptions ] -          } -        } - -        Method [ <internal:mongodb, prototype Countable> final public method count ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> 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 [ <internal:mongodb, ctor> final public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <required> $w ] -            Parameter #1 [ <optional> $wtimeout ] -            Parameter #2 [ <optional> $journal ] -          } -        } - -        Method [ <internal:mongodb> final public method getW ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getWtimeout ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getJournal ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb, prototype MongoDB\BSON\Serializable> final public method bsonSerialize ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\WriteConcernError ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [5] { -        Method [ <internal:mongodb, ctor> final private method __construct ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getCode ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getInfo ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getMessage ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\WriteError ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [6] { -        Method [ <internal:mongodb, ctor> final private method __construct ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getCode ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getIndex ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getMessage ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getInfo ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\WriteResult ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [12] { -        Method [ <internal:mongodb, ctor> final private method __construct ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getInsertedCount ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getMatchedCount ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getModifiedCount ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getDeletedCount ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getUpsertedCount ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getServer ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getUpsertedIds ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getWriteConcernError ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method getWriteErrors ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> final public method isAcknowledged ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:mongodb> public method __wakeup ] { - -          - Parameters [0] { -          } -        } -      } -    } - -    Interface [ <internal:mongodb> interface MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [0] { -      } - -      - Methods [0] { -      } -    } - -    Class [ <internal:mongodb> class MongoDB\Driver\Exception\LogicException extends LogicException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> class MongoDB\Driver\Exception\RuntimeException extends RuntimeException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> class MongoDB\Driver\Exception\UnexpectedValueException extends UnexpectedValueException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> class MongoDB\Driver\Exception\ConnectionException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> class MongoDB\Driver\Exception\AuthenticationException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\Exception\SSLConnectionException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> 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 [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -        Property [ <default> protected $writeResult ] -      } - -      - Methods [11] { -        Method [ <internal:mongodb> final public method getWriteResult ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\WriteException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [5] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -        Property [ <default> protected $writeResult ] -      } - -      - Methods [11] { -        Method [ <internal:mongodb, inherits MongoDB\Driver\Exception\WriteException> final public method getWriteResult ] { - -          - Parameters [0] { -          } -        } - -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\Exception\ExecutionTimeoutException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception, Throwable ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } - -    Class [ <internal:mongodb> final class MongoDB\Driver\Exception\ConnectionTimeoutException extends MongoDB\Driver\Exception\ConnectionException implements Throwable, MongoDB\Driver\Exception\Exception ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } - -      - Static methods [0] { -      } - -      - Properties [4] { -        Property [ <default> protected $message ] -        Property [ <default> protected $code ] -        Property [ <default> protected $file ] -        Property [ <default> protected $line ] -      } - -      - Methods [10] { -        Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - -          - Parameters [3] { -            Parameter #0 [ <optional> $message ] -            Parameter #1 [ <optional> $code ] -            Parameter #2 [ <optional> $previous ] -          } -        } - -        Method [ <internal:Core, inherits Exception> public method __wakeup ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { -        } - -        Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { -        } -      } -    } -  } -} - 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 <remi@fedoraproject.org> - 1.2.0-1 -- update to 1.2.0 -- internal dependency on date, json, spl and standard - -* Wed Sep 28 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.2.alpha3 -- update to 1.2.0alpha3 -- use bundled libbson and libmongoc - -* Mon Aug  8 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.1.alpha1 -- update to 1.2.0alpha1 -- open https://jira.mongodb.org/browse/PHPC-762 missing symbols - -* Tue Jul 19 2016 Remi Collet <remi@fedoraproject.org> - 1.1.8-4 -- License is ASL 2.0, from review #1269056 - -* Wed Jul 06 2016 Remi Collet <remi@fedoraproject.org> - 1.1.8-2 -- Update to 1.1.8 - -* Fri Jun  3 2016 Remi Collet <remi@fedoraproject.org> - 1.1.7-3 -- run the test suite during the build (x86_64 only) -- ignore known to fail tests - -* Thu Jun  2 2016 Remi Collet <remi@fedoraproject.org> - 1.1.7-2 -- Update to 1.1.7 - -* Thu Apr  7 2016 Remi Collet <remi@fedoraproject.org> - 1.1.6-2 -- Update to 1.1.6 - -* Thu Mar 31 2016 Remi Collet <remi@fedoraproject.org> - 1.1.5-4 -- load after smbclient to workaround -  https://jira.mongodb.org/browse/PHPC-658 - -* Fri Mar 18 2016 Remi Collet <remi@fedoraproject.org> - 1.1.5-2 -- Update to 1.1.5 (stable) - -* Thu Mar 10 2016 Remi Collet <remi@fedoraproject.org> - 1.1.4-2 -- Update to 1.1.4 (stable) - -* Sat Mar  5 2016 Remi Collet <remi@fedoraproject.org> - 1.1.3-2 -- Update to 1.1.3 (stable) - -* Thu Jan 07 2016 Remi Collet <remi@fedoraproject.org> - 1.1.2-2 -- Update to 1.1.2 (stable) - -* Thu Dec 31 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-4 -- fix patch for 32bits build -  open https://github.com/mongodb/mongo-php-driver/pull/191 - -* Sat Dec 26 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-2 -- Update to 1.1.1 (stable) -- add patch for 32bits build, -  open https://github.com/mongodb/mongo-php-driver/pull/185 - -* Wed Dec 16 2015 Remi Collet <remi@fedoraproject.org> - 1.1.0-1 -- Update to 1.1.0 (stable) -- raise dependency on libmongoc >= 1.3.0 - -* Tue Dec  8 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-2 -- update to 1.0.1 (stable) -- ensure libmongoc >= 1.2.0 and < 1.3 is used - -* Fri Oct 30 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-2 -- update to 1.0.0 (stable) - -* Tue Oct 27 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.5.RC0 -- Update to 1.0.0RC0 (beta) - -* Tue Oct  6 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.3-beta2 -- Update to 1.0.0beta2 (beta) - -* Fri Sep 11 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.2-beta1 -- Update to 1.0.0beta1 (beta) - -* Mon Aug 31 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.1.alpha2 -- Update to 1.0.0alpha2 (alpha) -- buid with system libmongoc - -* Thu May 07 2015 Remi Collet <remi@fedoraproject.org> - 0.6.3-1 -- Update to 0.6.3 (alpha) - -* Wed May 06 2015 Remi Collet <remi@fedoraproject.org> - 0.6.2-1 -- Update to 0.6.2 (alpha) - -* Wed May 06 2015 Remi Collet <remi@fedoraproject.org> - 0.6.0-1 -- Update to 0.6.0 (alpha) - -* Sat Apr 25 2015 Remi Collet <remi@fedoraproject.org> - 0.5.1-1 -- Update to 0.5.1 (alpha) - -* Thu Apr 23 2015 Remi Collet <remi@fedoraproject.org> - 0.5.0-2 -- build with system libbson -- open https://jira.mongodb.org/browse/PHPC-259 - -* Wed Apr 22 2015 Remi Collet <remi@fedoraproject.org> - 0.5.0-1 -- initial package, version 0.5.0 (alpha) - 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 <remi@fedoraproject.org> - 1.1.9-1 -- Update to 1.1.9 (no change) +* Tue Nov 29 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-1 +- update to 1.2.0 +- internal dependency on date, json, spl and standard + +* Wed Sep 28 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.2.alpha3 +- update to 1.2.0alpha3 +- use bundled libbson and libmongoc -* Wed Sep 14 2016 Remi Collet <remi@fedoraproject.org> - 1.1.8-5 -- rebuild for PHP 7.1 new API version +* Mon Aug  8 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.1.alpha1 +- update to 1.2.0alpha1 +- open https://jira.mongodb.org/browse/PHPC-762 missing symbols  * Tue Jul 19 2016 Remi Collet <remi@fedoraproject.org> - 1.1.8-4  - License is ASL 2.0, from review #1269056  | 
