Jeremy Mikola
ce2e43ea31
PHPC-1359: Prohibit startTransaction() on sharded clusters
...
In versions of the driver that do not support mongos pinning, we should prohibit starting a transaction on a sharded cluster (even if the server version might actually support transactions).
2019-06-03 10:30:43 -04:00
Jeremy Mikola
092d82dd95
Relocate "_t" in function name
2019-05-30 12:30:04 -04:00
Derick Rethans
26d276407e
PHPC-1270: Upgrade libmongoc to 1.13.0
2018-09-20 10:49:49 +01:00
Derick Rethans
82de814be3
PHPC-1266: Empty deeply nested BSON document causes unallocated memory writes
2018-09-07 13:04:07 +01:00
Derick Rethans
c6bbbc3fd7
PHPC-1110: Jump on uninitialised variable causes advanceOperationTime test failure
2018-07-27 11:45:52 +01:00
Derick Rethans
954cd829b4
PHPC-1251: Upgrade libmongoc to 1.12.0
2018-07-23 10:30:15 +01:00
Derick Rethans
2cfc3fa6a9
PHPC-1243: Calling session methods after Session::endSession() causes use-after-free crash
2018-07-19 19:23:31 +01:00
Jeremy Mikola
e273c2e5c7
PHPC-1193: Bump libmongoc to 1.11.0
2018-06-25 16:19:16 -04:00
Jeremy Mikola
9f118a2229
PHPC-1211: Int64 class to wrap 64-bit integers on 32-bit platforms
2018-06-22 13:07:33 -04:00
Jeremy Mikola
ae98012a52
Use static string buffer for UTCDateTime::__toString()
2018-06-21 15:38:30 -04:00
Jeremy Mikola
e584ee8054
Update bson_ascii_strtoll() usage in Timestamp and UTCDateTime
...
bson_ascii_strtoll() resets errno, so that is no longer necessary. This also removes some outdated comments.
2018-06-21 15:36:06 -04:00
Derick Rethans
94e8ab0c11
PHPC-1083: Change "available" RP constant to use libmongoc's constant instead of hard coding it
2018-06-19 20:07:48 +01:00
Derick Rethans
b172a20c31
PHPC-1140: Implement Transactions specification
2018-06-19 14:47:29 +01:00
Derick Rethans
96dfb0644d
Fixed php_array_exists call
2018-06-18 15:34:05 +01:00
Derick Rethans
d92d94224a
PHPC-850: var_export() support for WriteConcern
2018-06-07 17:08:22 +01:00
Derick Rethans
a801b8cb34
PHPC-850: var_export() support for ReadConcern
2018-06-07 17:08:22 +01:00
Derick Rethans
f12e2005b4
PHPC-850: var_export() support for ReadPreference
2018-06-07 17:08:22 +01:00
Derick Rethans
ab1f151e04
PHPC-1193: Bump libmongoc to 1.11 (and add ICU check)
2018-06-07 16:40:22 +01:00
Jeremy Mikola
3c8fdfd9cb
Factor out redundant parameter in append_document()
2018-05-25 11:29:56 -04:00
Jeremy Mikola
1b082cf913
PHPC-1195: Bump libmongoc to 1.10-dev for CDRIVER-2661
2018-05-25 11:29:56 -04:00
Jeremy Mikola
a048e0eb30
PHPC-1195: BulkWrite::update() should append arrayFilters as array
2018-05-25 11:29:56 -04:00
Katherine Walker
814d49cacf
PHPC-1076: Expose result document for failed commands via CommandFailedEvent
2018-05-22 08:31:01 -04:00
Jeremy Mikola
7c0ccd3e20
PHPC-1174: Upgrade bundled libmongoc to 1.10.0
2018-05-21 12:41:35 -04:00
Jeremy Mikola
ce45de41fa
PHPC-1174: Bump libbson and libmongoc to 1.10.0-dev
...
This consolidates CFLAGS for bundled libraries, adds a new "common/" build path, and defines new constants as needed.
2018-05-18 11:45:35 -04:00
Derick Rethans
197f3f7a8a
PHPC-1166: Update zend array recursion protection for PHP 7.3
2018-05-17 16:11:28 +02:00
Derick Rethans
6e6380e836
PHPC-1118: Fixed formatting for deprecated opts macro
2018-04-30 14:23:40 +01:00
Derick Rethans
8ee4372f0f
PHPC-1118: Tidy up function_entry alignment oddness related to introduction of clang-format
2018-04-27 11:29:20 +01:00
Katherine Walker
7b4cb0c30e
PHPC-1160: Initialize bson_error_t structs to zero
2018-04-26 15:31:14 -04:00
Derick Rethans
54167755ca
Fixed formatting.
2018-04-25 15:57:55 +01:00
Derick Rethans
a25a3d6b17
PHPC-1138: Deprecate snapshot option
2018-04-25 15:57:55 +01:00
Derick Rethans
f34ecdb9eb
PHPC-1137: Deprecate maxScan option
2018-04-25 15:57:55 +01:00
Jeremy Mikola
58030116dd
Apply code formatting to changes from v1.4
2018-04-18 16:17:45 -04:00
Jeremy Mikola
480bc58cd3
Merge branch 'v1.4'
2018-04-18 16:08:00 -04:00
Jeremy Mikola
1f222d0f78
PHPC-1151: Bump Cursor var_dump array size for Session
...
This should have done in cc90304658 .
2018-04-18 14:37:51 -04:00
Jeremy Mikola
fdc7565507
PHPC-1161: Free reference to Session once Cursor is exhausted
2018-04-18 14:37:51 -04:00
Jeremy Mikola
0cb33f6c63
Merge branch 'v1.4'
2018-04-18 12:59:43 -04:00
Jeremy Mikola
1dfc8df053
PHPC-1162: Add reference to currentDocument in debug info
...
This fixes a segfault while dumping the cursor between iterations with IteratorIterator.
2018-04-18 12:02:55 -04:00
Derick Rethans
2cd3e4f8c8
Abandon strtok_r() in favour of a hand rolled algorithm
...
strtok_r() can't handle empty elements :-/
2018-04-18 11:02:56 +01:00
Derick Rethans
bb31cd4db8
Hint to the compiler that map_element_matches_field_path() should be inlined
2018-04-18 11:02:56 +01:00
Derick Rethans
6da5d4b893
Rename free_elements to owns_elements, as that is more descriptive
2018-04-18 11:02:56 +01:00
Derick Rethans
dac1d78155
Use correct size in reallocs
2018-04-18 11:02:56 +01:00
Derick Rethans
f5965ce4d2
s/allocated/allocated_size
2018-04-18 11:02:56 +01:00
Derick Rethans
e7e9fe76e6
PHPC-1154: Fix memory leak with typemaps and MongoDB\BSON\toPHP
2018-04-18 11:02:56 +01:00
Derick Rethans
eddcd4bc5b
PHPC-1154: Implement wild card syntax for typemap field paths
2018-04-18 11:02:56 +01:00
Derick Rethans
bdda892b2e
PHPC-314: Parse fieldPaths element of the typemap into a tree
2018-04-18 11:02:56 +01:00
Derick Rethans
d4d1fa3968
PHPC-314: Record whether we're dealing with a document or an array for each level
2018-04-18 11:02:56 +01:00
Derick Rethans
f5e49768ea
PHPC-314: Read fieldPaths elements and check for correct map types
2018-04-18 11:02:56 +01:00
Jeremy Mikola
3af46fc79c
Merge branch 'v1.4'
2018-04-16 11:32:51 -04:00
Jeremy Mikola
cc90304658
PHPC-1151: Add Session to Cursor debug output
2018-04-16 11:28:21 -04:00
Jeremy Mikola
21307dee76
PHPC-1151: Maintain Session reference on Cursor
...
This ensures that the Session and underlying mongoc_client_session_t will not be freed until after the Cursor's mongoc_cursor_t object is destroyed.
2018-04-16 11:28:21 -04:00