This repository was archived by the owner on Feb 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathchangelog.mongo.html
420 lines (306 loc) · 32.1 KB
/
changelog.mongo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Changelog</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />
</head>
<body class="docs"><div class="navbar navbar-fixed-top">
<div class="navbar-inner clearfix">
<ul class="nav" style="width: 100%">
<li style="float: left;"><a href="mongowriteconcernexception.getdocument.html">« MongoWriteConcernException::getDocument</a></li>
</ul>
</div>
</div>
<div id="breadcrumbs" class="clearfix">
<ul class="breadcrumbs-container">
<li><a href="index.html">PHP Manual</a></li>
<li><a href="book.mongo.html">Mongo</a></li>
<li>Changelog</li>
</ul>
</div>
<div id="layout">
<div id="layout-content"><div id="changelog.mongo" class="appendix">
<h1>Changelog</h1>
<p class="para">The following changes have been made to classes/functions/methods of this extension.</p>
<div class="simplesect" id="changelog.mongo.1.5">
<h3 class="title">MongoDB PHP Driver 1.5.0</h3>
<p class="para">
It supports all new features for MongoDB 2.6, including:
<ul class="simplelist">
<li class="member">Aggregate can now return a cursor</li>
<li class="member">Aggregation pipelines can now be explained</li>
<li class="member">Possible to set maxTimeMS for commands and queries</li>
<li class="member">Transparent support for the new command-based MongoDB write API</li>
<li class="member">New MongoWriteBatch classes (using the new MongoDB write API)</li>
<li class="member">Support for MongoDB Enterprise features (e.g. Kerberos, LDAP, X509)</li>
<li class="member">Option to tune acceptable server latency for secondary reads (secondaryAcceptableLatencyMS)</li>
</ul>
</p>
<p class="para">
With this release, some driver functionality which was previously
documented as deprecated will now formally raise deprecation notices. This
includes:
<ul class="simplelist">
<li class="member">Instantiating the Mongo class</li>
<li class="member">Calling MongoCursor::slaveOkay()</li>
<li class="member">"wtimeout" and "safe" options for MongoCollection write operations</li>
<li class="member">Manipulating public properties on core classes (such as $collection->w)</li>
</ul>
</p>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
No previously deprecated features have been removed.
</p>
</p></blockquote>
<p class="para">
Changes in behaviour:
<ul class="simplelist">
<li class="member">Setting the mongo.native_long INI setting now raises an error on 32-bit
platforms, and now defaults to true for 64-bit platforms.</li>
</ul>
</p>
</div>
<div class="simplesect" id="changelog.mongo.1.4">
<h3 class="title">MongoDB PHP Driver 1.4.0</h3>
<p class="para">
The 1.4 series introduced fundemental changes in how connections are created to the MongoDB servers.
The driver now utilizes PHP native streams, so all normal PHP stream options apply.
Furthermore, an experimental Stream Context Support was added.
</p>
<p class="para">
The 1.4.x series also added support for MongoDB 2.4.x.
</p>
<p class="para">
The most important improvements however deal with the handling of replica sets,
especially nodes that timeout and nodes that are unreachable for various
reasons. Besides the improvements to replica set handling, this release
addresses issues with read preferences through mongos nodes. It also
adds support for SSL enabled connections as well as journal and fsync
connection string options.
</p>
</div>
<div class="simplesect" id="changelog.mongo.1.3">
<h3 class="title">MongoDB PHP Driver 1.3.0</h3>
<p class="para">
The 1.3 series introduced several major changes to the extension such as
completely rewritten <a href="mongo.connecting.html" class="link">connection
handling</a> (and removal of the pooling mechanism), support for
<a href="mongo.readpreferences.html" class="link">ReadPreferences</a> and change the
default <a href="mongo.writes.html" class="link">WriteConcerns</a> to be
<em class="emphasis">acknowledged</em> by introducing a new class
<a href="class.mongoclient.html" class="link">MongoClient</a> which serves as a
replacement class for the now deprecated <a href="class.mongo.html" class="classname">Mongo</a> class.
</p>
<p class="para">
The driver now also supports connecting to multiple mongos instances (the
Mongo Shard router) for loadbalancing.
</p>
<p class="para">
Other enhancements include improved logging for easier connection handling
debugging with <a href="class.mongolog.html" class="classname">MongoLog</a> and support for the
<a href="https://docs.mongodb.com/manual/core/aggregation-pipeline/" class="link external">» Aggregation Framework</a>
via the <span class="methodname"><a href="mongocollection.aggregate.html" class="methodname">MongoCollection::aggregate()</a></span> method.
</p>
</div>
<div class="simplesect">
<h3 class="title">Changes to existing methods</h3>
<p class="para">
Following is a list of all improvements to existing methods since
their inception.
</p>
<table class='doctable table' rules='groups'><thead><tr><th>Version</th><th>Function</th><th>Description</th></tr></thead><tbody class="gen-changelog v"><tr><td>PECL mongo 1.7.0</td><td><a href='mongodb.execute.html'>MongoDB::execute</a></td><td>This method has been deprecated as a result of the underlaying
eval command
being deprecated in MongoDB 3.0+.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-7-0"><tr><td>PECL mongo 1.6.0</td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added support for "SCRAM-SHA-1" in
"authMechanism" option.</td></tr><tr><td> </td><td><a href='mongocollection.count.html'>MongoCollection::count</a></td><td>The second parameter is now an options array.
Passing limit and skip as
the second and third parameters, respectively, is deprecated.</td></tr><tr><td> </td><td><a href='mongodb.getcollectionnames.html'>MongoDB::getCollectionNames</a></td><td>Changed first parameter to be an array of options. Pre-1.6.0, the
first parameter was a boolean indicating the
"includeSystemCollections" option.</td></tr><tr><td> </td><td><a href='mongodb.listcollections.html'>MongoDB::listCollections</a></td><td>Changed first parameter to be an array of options. Pre-1.6.0, the
first parameter was a boolean indicating the
"includeSystemCollections" option.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-6-0"><tr><td>PECL mongo 1.5.0</td><td><a href='function.log-cmd-delete.html'>log_cmd_delete</a></td><td>Only available when connected to MongoDB 2.6.0+</td></tr><tr><td> </td><td><a href='function.log-cmd-insert.html'>log_cmd_insert</a></td><td>Only available when connected to MongoDB 2.6.0+</td></tr><tr><td> </td><td><a href='function.log-cmd-update.html'>log_cmd_update</a></td><td>Only available when connected to MongoDB 2.6.0+</td></tr><tr><td> </td><td><a href='function.log-write-batch.html'>log_write_batch</a></td><td>Only available when connected to MongoDB 2.6.0+</td></tr><tr><td> </td><td><a href='mongobindata.construct.html'>MongoBinData::__construct</a></td><td>The default changed from 2
(MongoBinData::BYTE_ARRAY) to
0 (MongoBinData::GENERIC).</td></tr><tr><td> </td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added "authMechanism", "gssapiServiceName", and "secondaryAcceptableLatencyMS".</td></tr><tr><td> </td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added "authSource".</td></tr><tr><td> </td><td><a href='mongocollection.aggregate.html'>MongoCollection::aggregate</a></td><td>Added optional options argument</td></tr><tr><td> </td><td><a href='mongocollection.batchinsert.html'>MongoCollection::batchInsert</a></td><td>Added the "wTimeoutMS" option, which replaces
"wtimeout". Emits E_DEPRECATED
when "wtimeout" is used.
Added the "socketTimeoutMS" option, which replaces
"timeout". Emits E_DEPRECATED
when "timeout" is used.
Emits E_DEPRECATED when "safe"
is used.</td></tr><tr><td> </td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>Renamed the "wtimeout" option to
"wTimeoutMS". Emits
E_DEPRECATED when "wtimeout" is
used.
Renamed the "timeout" option to
"socketTimeoutMS". Emits
E_DEPRECATED when "timeout" is
used.
Emits E_DEPRECATED when "safe"
is used.</td></tr><tr><td> </td><td><a href='mongocollection.findone.html'>MongoCollection::findOne</a></td><td>Added optional options argument.</td></tr><tr><td> </td><td><a href='mongocollection.group.html'>MongoCollection::group</a></td><td>Added "maxTimeMS" option.</td></tr><tr><td> </td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Added the "wTimeoutMS" option, which replaces
"wtimeout". Emits E_DEPRECATED
when "wtimeout" is used.
Added the "socketTimeoutMS" option, which replaces
"timeout". Emits E_DEPRECATED
when "timeout" is used.
Emits E_DEPRECATED when "safe"
is used.</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Added "wTimeoutMS" option, which replaces
"wtimeout". Emits E_DEPRECATED
when "wtimeout" is used.
Added "socketTimeoutMS" option, which replaces
"timeout". Emits E_DEPRECATED
when "timeout" is used.
Emits E_DEPRECATED when "safe"
is used.</td></tr><tr><td> </td><td><a href='mongocollection.save.html'>MongoCollection::save</a></td><td>Added "wTimeoutMS" option, which replaces
"wtimeout". Emits E_DEPRECATED
when "wtimeout" is used.
Added "socketTimeoutMS" option, which replaces
"timeout". Emits E_DEPRECATED
when "timeout" is used.
Emits E_DEPRECATED when "safe"
is used.</td></tr><tr><td> </td><td><a href='mongocollection.toindexstring.html'>MongoCollection::toIndexString</a></td><td>This method has been deprecated.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Added the "wTimeoutMS" option, which replaces
"wtimeout". Emits E_DEPRECATED
when "wtimeout" is used.
Added the "socketTimeoutMS" option, which replaces
"timeout". Emits E_DEPRECATED
when "timeout" is used.
Emits E_DEPRECATED when "safe"
is used.</td></tr><tr><td> </td><td><a href='mongocursor.slaveokay.html'>MongoCursor::slaveOkay</a></td><td>This method has been deprecated in favour of
MongoCursor::setReadPreference and .</td></tr><tr><td> </td><td><a href='mongodb.command.html'>MongoDB::command</a></td><td>Renamed the "timeout" option to
"socketTimeoutMS". Emits
E_DEPRECATED when "timeout" is
used.
Added hash by-reference parameter.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-5-0"><tr><td>PECL mongo 1.4.5</td><td><a href='mongocursor.batchsize.html'>MongoCursor::batchSize</a></td><td>Before 1.4.5, this method would throw an
MongoCursorException if the cursor had already
started iterating.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-4-5"><tr><td>PECL mongo 1.4.0</td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added "ssl" option and support for
connecting over SSL.
Added "wTimeoutMS" option, which replaces
"wTimeout".
Emits E_DEPRECATED when
"slaveOkay" or "timeout" is used.</td></tr><tr><td> </td><td><a href='mongocursor.hint.html'>MongoCursor::hint</a></td><td>The index argument now supports index names as
string values. In versions before 1.4.0, only array or object values
were accepted.</td></tr><tr><td> </td><td><a href='mongocursor.setflag.html'>MongoCursor::setFlag</a></td><td>Support for flag 3 (OPLOG_REPLAY) is added. Versions before 1.4.0
would throw a warning saying that the flag is unsupported.</td></tr><tr><td> </td><td><a href='mongodb.createcollection.html'>MongoDB::createCollection</a></td><td>In versions before 1.4.0, the options were all arguments to the method. The
function synopsis in those older versions is:
public MongoCollectionMongoDB::createCollection
stringname
boolcappedfalse
intsize0
intmax0
The meaning of the options is the same as described under the
options argument above.</td></tr><tr><td> </td><td><a href='mongoid.construct.html'>MongoId::__construct</a></td><td>An exception is thrown when passed invalid string</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-4-0"><tr><td>PECL mongo 1.3.4</td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added "connectTimeoutMS" and
"socketTimeoutMS" options.</td></tr><tr><td> </td><td><a href='mongocollection.batchinsert.html'>MongoCollection::batchInsert</a></td><td>Added "wtimeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>Added "wtimeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Added "wtimeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Added "wtimeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Added "wtimeout" option.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-3-4"><tr><td>PECL mongo 1.3.3</td><td><a href='mongoclient.getreadpreference.html'>MongoClient::getReadPreference</a></td><td>The return value has changed to be consistent with
MongoClient::setReadPreference. The
type value was changed from a number to a string,
type_string was removed, and
tagsets now expresses tags as key/value pairs instead
of colon-delimited strings.</td></tr><tr><td> </td><td><a href='mongocollection.getreadpreference.html'>MongoCollection::getReadPreference</a></td><td>The return value has changed to be consistent with
MongoCollection::setReadPreference. The
type value was changed from a number to a string,
type_string was removed, and
tagsets now expresses tags as key/value pairs instead
of colon-delimited strings.</td></tr><tr><td> </td><td><a href='mongodb.getreadpreference.html'>MongoDB::getReadPreference</a></td><td>The return value has changed to be consistent with
MongoDB::setReadPreference. The
type value was changed from a number to a string,
type_string was removed, and
tagsets now expresses tags as key/value pairs instead
of colon-delimited strings.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-3-3"><tr><td>PECL mongo 1.3.0</td><td><a href='mongoclient.close.html'>MongoClient::close</a></td><td>The connection parameter to this function was
added in 1.3.0. Before that, only the write connection would be
closed by this method.</td></tr><tr><td> </td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added "readPreference",
"readPreferenceTags", "w", and
"wTimeout" options.</td></tr><tr><td> </td><td><a href='mongocollection.batchinsert.html'>MongoCollection::batchInsert</a></td><td>Added "w" option.</td></tr><tr><td> </td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>Added "w" option.
The options parameter no longer accepts a
boolean to signify a unique index. Instead, this now has to be done
with array('unique' => true).</td></tr><tr><td> </td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Added "w" option.
The options parameter no longer accepts a
boolean to signify an acknowledged write. Instead, this now has to be
done with array('w' => 1) (the default behaviour of
MongoClient).</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Added "w" option.
The options parameter no longer accepts a
boolean to signify "justOne". Instead, this now has
to be done with array('justOne' => true).</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Added "w" option.
The options parameter no longer accepts a boolean
to signify an upsert. Instead, this now has to be done with
array('upsert' => true).</td></tr><tr><td> </td><td><a href='mongodb.listcollections.html'>MongoDB::listCollections</a></td><td>Added the includeSystemCollections parameter.</td></tr><tr><td> </td><td><a href='mongogridfscursor.key.html'>MongoGridFSCursor::key</a></td><td>The document's _id is returned as a string value,
since the key should be unique. Pre-1.3.0, filename
was returned.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-3-0"><tr><td>PECL mongo 1.2.11</td><td><a href='mongo.getpoolsize.html'>Mongo::getPoolSize</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongo.getslave.html'>Mongo::getSlave</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongo.getslaveokay.html'>Mongo::getSlaveOkay</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongo.pooldebug.html'>Mongo::poolDebug</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongo.setslaveokay.html'>Mongo::setSlaveOkay</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongo.switchslave.html'>Mongo::switchSlave</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongobindata.construct.html'>MongoBinData::__construct</a></td><td>Emits E_DEPRECATED when the second argument is not
used. The default value for type may change in
the near future.</td></tr><tr><td> </td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>Emits E_DEPRECATED when
options is scalar.</td></tr><tr><td> </td><td><a href='mongocollection.getslaveokay.html'>MongoCollection::getSlaveOkay</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongocollection.group.html'>MongoCollection::group</a></td><td>Emits E_DEPRECATED when
options is scalar.</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Emits E_DEPRECATED when
options is scalar.</td></tr><tr><td> </td><td><a href='mongocollection.setslaveokay.html'>MongoCollection::setSlaveOkay</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Emits E_DEPRECATED when
options is scalar.</td></tr><tr><td> </td><td><a href='mongocursor.doquery.html'>MongoCursor::doQuery</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongodb.authenticate.html'>MongoDB::authenticate</a></td><td>Emits E_DEPRECATED when used. Please pass in the
authentication details to the constructor.</td></tr><tr><td> </td><td><a href='mongodb.forceerror.html'>MongoDB::forceError</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongodb.getslaveokay.html'>MongoDB::getSlaveOkay</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongodb.preverror.html'>MongoDB::prevError</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongodb.reseterror.html'>MongoDB::resetError</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongodb.setslaveokay.html'>MongoDB::setSlaveOkay</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongopool.getsize.html'>MongoPool::getSize</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongopool.info.html'>MongoPool::info</a></td><td>Emits E_DEPRECATED when used.</td></tr><tr><td> </td><td><a href='mongopool.setsize.html'>MongoPool::setSize</a></td><td>Emits E_DEPRECATED when used.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-2-11"><tr><td>PECL mongo 1.2.10</td><td><a href='mongoclient.gethosts.html'>MongoClient::getHosts</a></td><td>Support for non-replicasets was added.
The returned array elements now also include the
hostname and port.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-2-10"><tr><td>PECL mongo 1.2.7</td><td><a href='mongocollection.batchinsert.html'>MongoCollection::batchInsert</a></td><td>Added "continueOnError" option.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-2-7"><tr><td>PECL mongo 1.2.5</td><td><a href='mongogridfs.storeupload.html'>MongoGridFS::storeUpload</a></td><td>Changed second parameter to an array of metadata. Pre-1.2.5, the
second parameter was an optional string overriding the filename.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-2-5"><tr><td>PECL mongo 1.2.0</td><td><a href='mongoclient.close.html'>MongoClient::close</a></td><td>Before version 1.2.0 the driver would not use persistent connections
by default, and all connections would be closed as soon as a MongoDB
connection went out if scope. Since version 1.2.0 this is no longer
the case and it is a bad idea to call close as you might end up
overloading the server with connections under high load.</td></tr><tr><td> </td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added "username" and "password"
options.
Removed "persist" option, as all connections are
now persistent. It can still be used, but it doesn't affect anything.
"persist"
If the connection should be persistent. If set, the connection will
be persistent. The string representation of the value is used as an
ID for the connection, so two instances of
MongoClient that are initialized with
array("persist" => "foobar") will share the same
database connection, whereas an instance initialized with
array("persist" => "barbaz") will use a different
database connection.
The "replicaSet" option now takes a string, not a
boolean.</td></tr><tr><td> </td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>Added "timeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Added "timeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Added "timeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.save.html'>MongoCollection::save</a></td><td>Added "timeout" option.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Added "timeout" option.</td></tr><tr><td> </td><td><a href='mongodb.command.html'>MongoDB::command</a></td><td>Added options parameter with a single option:
"timeout".</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-2-0"><tr><td>PECL mongo 1.1.0</td><td><a href='mongocursor.info.html'>MongoCursor::info</a></td><td>Added a number of other fields, including id (the
cursor id), at (the driver's counter of which
document is current), numReturned (the number
returned by the server in the current batch), and
server (which server the query was sent
to—useful in conjunction with
.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-1-0"><tr><td>PECL mongo 1.0.11</td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>The "safe" option will trigger a primary failover,
if necessary.
MongoException will be thrown if the index name
(either generated or set) is longer than 128 bytes.</td></tr><tr><td> </td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Disconnects on "not master" errors if "safe" is set.</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Disconnects on "not master" errors if "safe" is set.</td></tr><tr><td> </td><td><a href='mongocollection.save.html'>MongoCollection::save</a></td><td>Disconnects on "not master" errors if "safe" is set.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Disconnects on "not master" errors if "safe" is set.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-0-11"><tr><td>PECL mongo 1.0.10</td><td><a href='mongocursor.info.html'>MongoCursor::info</a></td><td>Added started_iterating field, a boolean indicating
if cursor is pre- or post-query.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-0-10"><tr><td>PECL mongo 1.0.9</td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Added "replicaSet" option.</td></tr><tr><td> </td><td><a href='mongocollection.batchinsert.html'>MongoCollection::batchInsert</a></td><td>Added ability to pass integers to the "safe" option,
which previously only accepted booleans.
Added "fsync" option.</td></tr><tr><td> </td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Added ability to pass integers to the "safe" option,
which previously only accepted booleans.
Added "fsync" option.
The return type was changed to be an array containing error information
if the "safe" option is used. Otherwise, a boolean
is returned as before.</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Added ability to pass integers to the "safe" option,
which previously only accepted booleans.
Added "fsync" option.
The return type was changed to be an array containing error information
if the "safe" option is used. Otherwise, a boolean
is returned as before.</td></tr><tr><td> </td><td><a href='mongocollection.save.html'>MongoCollection::save</a></td><td>Added "fsync" option.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Added ability to pass integers to the "safe" option,
which previously only accepted booleans.
Added "fsync" option.
The return type was changed to be an array containing error information
if the "safe" option is used. Otherwise, a boolean
is returned as before.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-0-9"><tr><td>PECL mongo 1.0.7</td><td><a href='mongocollection.count.html'>MongoCollection::count</a></td><td>Added limit and skip as
second and third parameters, respectively.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-0-7"><tr><td>PECL mongo 1.0.5</td><td><a href='mongocollection.batchinsert.html'>MongoCollection::batchInsert</a></td><td>Added options parameter.</td></tr><tr><td> </td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>Added the "name" option to override index name
creation.</td></tr><tr><td> </td><td><a href='mongocollection.remove.html'>MongoCollection::remove</a></td><td>Changed second parameter to be an array of options. Pre-1.0.5, the
second parameter was a boolean indicating the "safe"
option.</td></tr><tr><td> </td><td><a href='mongocollection.save.html'>MongoCollection::save</a></td><td>Added options parameter.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Added "safe" option.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-0-5"><tr><td>PECL mongo 1.0.2</td><td><a href='mongoclient.construct.html'>MongoClient::__construct</a></td><td>Changed constructor to take an array of options. Pre-1.0.2, the
constructor took the following parameters:
server
The server name.
connect
Optional boolean parameter specifying if the constructor should
connect to the database before returning. Defaults to true.
persistent
If the connection should be persistent.
paired
If the connection should be paired.</td></tr><tr><td> </td><td><a href='mongocollection.ensureindex.html'>MongoCollection::ensureIndex</a></td><td>Changed options parameter from boolean to array.
Pre-1.0.2, the second parameter was an optional boolean value specifying
a unique index.</td></tr><tr><td> </td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Changed second parameter to be an array of options. Pre-1.0.2, the
second parameter was a boolean indicating the "safe"
option.</td></tr></tbody><tbody class="gen-changelog vPECL mongo 1-0-2"><tr><td>PECL mongo 1.0.1</td><td><a href='mongocollection.insert.html'>MongoCollection::insert</a></td><td>Throw a MongoCursorException if the
"safe" option is set and the insert fails.</td></tr><tr><td> </td><td><a href='mongocollection.update.html'>MongoCollection::update</a></td><td>Changed options parameter from boolean to array.
Pre-1.0.1, the second parameter was an optional boolean value specifying
an upsert.</td></tr></tbody></table>
</div>
</div>
</div></div></body></html>