938 Commits

Author SHA1 Message Date
Andreas Braun
38e82dc204 PHPC-1559: Fix libmongoc compilation issue in alpine 2020-02-25 10:05:16 +01:00
Andreas Braun
9cc0fe92aa PHPC-1553: Fix libmongocrypt compilation issue on Alpine Linux 2020-02-13 11:57:57 +01:00
Andreas Braun
c049448b88 Update libmongoc to 1.16.1 2020-02-04 07:52:12 +01:00
Jeremy Mikola
1260d114bc PHPC-1274: Reset client after forking for executeBulkWrite 2020-02-03 13:13:48 +01:00
Andreas Braun
4a9eecfbd6 PHPC-1539: Introduce EncryptionException class 2020-01-27 19:31:39 +01:00
Jeremy Mikola
7cd2a1bb0a PHPC-1462: Support hint for update commands 2020-01-24 17:31:42 -05:00
Andreas Braun
c54bbaac67 PHPC-1499: Declare class constants for encryption algorithms 2020-01-22 08:18:32 +01:00
Andreas Braun
545db4eabd PHPC-1499: Expose BSON constant for subtype 6 2020-01-22 08:18:32 +01:00
Andreas Braun
f0372a50c5 PHPC-1499: Implement ClientEncryption::decrypt 2020-01-22 08:18:32 +01:00
Andreas Braun
4d7b35ee69 PHPC-1499: Implement ClientEncryption::encrypt 2020-01-22 08:18:32 +01:00
Andreas Braun
e65a933c8f PHPC-1499: Implement ClientEncryption::createDataKey 2020-01-22 08:18:32 +01:00
Andreas Braun
4923bdd97b PHPC-1499: Add empty ClientEncryption class 2020-01-22 08:18:32 +01:00
Andreas Braun
f167da97d4 PHPC-1499: Add functions to convert zval to bson_value_t and back 2020-01-22 08:18:32 +01:00
Andreas Braun
8d291ee89a Update to libmongoc 1.16.0 2020-01-17 13:33:53 +01:00
Andreas Braun
f14427fd53 Update to stable libmongocrypt release 2020-01-16 12:44:39 +01:00
Andreas Braun
123f9b0b88 PHPC-1498: Read auto encryption options from driverOptions 2020-01-16 09:23:12 +01:00
Andreas Braun
b65ee367cb PHPC-1500: Store client hash in manager struct 2020-01-16 09:04:29 +01:00
Jeremy Mikola
9ecb50a7e6 PHPC-1274: Reset client after forking for Cursor and Session
Check PID before creating/freeing a session or cursor to avoid interfering with resources owned by a parent process. Additionally, prohibit resetting a client multiple times to avoid cases where child resources may not be cleaned up.
2020-01-10 17:28:48 -05:00
Andreas Braun
94bb265ec9 Run clang-format on existing sources 2020-01-08 13:41:53 +01:00
Andreas Braun
7cea21a25a PHPC-1496: Add support for compiling with libmongocrypt 2020-01-08 12:41:41 +01:00
Andreas Braun
6abb38feb7 Update to latest libmongoc version 2019-12-19 15:38:04 +01:00
Jeremy Mikola
366dcbe7d2 PHPC-1411: Prefer integer types for wtimeout when possible
For serialization, 64-bit wtimeout values will always be encoded as strings for portability. Debug output and bsonSerialize() can always use integers on 64-bit platforms and can fall back to strings and Int64 objects on 32-bit platforms, respectively.
2019-12-19 06:51:06 +01:00
Andreas Braun
e501104c2c PHPC-1411: Simplify handling of 64-bit values on 32-bit architectures 2019-12-19 06:50:41 +01:00
Andreas Braun
a54fbcd8c0 PHPC-1411: Emit warning when truncating 64-bit value 2019-12-19 06:50:41 +01:00
Andreas Braun
cdff70faf6 PHPC-1411: Accept 64-bit integers for wTimeoutMS 2019-12-19 06:50:41 +01:00
Andreas Braun
c15d1315ba PHPC-1438: Expose session state 2019-12-06 11:36:35 +01:00
Andreas Braun
24de9ca68c PHPC-1491: Expose string read preference constants 2019-12-05 22:05:05 +01:00
Andreas Braun
e3a84d7542 PHPC-1491: Expose read preference mode as string 2019-12-05 22:05:05 +01:00
Andreas Braun
c64a088775 PHPC-1491: Replace string read preferences with constants 2019-12-05 21:33:48 +01:00
Andreas Braun
67d8db55f6 PHPC-1471: Clean up reference handling in Javascript scope serialisation 2019-11-28 10:17:04 +01:00
Jeremy Mikola
dc0a9d3ac1 Update to libmongoc-1.16.0-dev 2019-11-14 08:15:52 +01:00
Andreas Braun
0a30941096 PHPC-1459: Add serialization support for CursorId 2019-11-08 16:57:45 +01:00
Andreas Braun
ad1b890177 PHPC-1472: Prevent multiple exceptions from being thrown while dumping manager 2019-11-07 07:16:49 +01:00
Andreas Braun
09f83fa251 PHPC-1439: Expose transaction options on session object 2019-11-05 07:37:23 +01:00
Andreas Braun
17005fade6 Fix wrong indentation 2019-11-05 07:37:23 +01:00
Andreas Braun
16b9a31332 Update to libmongoc-1.16.0-dev 2019-11-05 07:37:23 +01:00
Andreas Braun
b31745fb36 PHPC-1230: Refactor hardcoded ObjectID lenghts 2019-10-30 06:59:19 +01:00
Andreas Braun
108f2b7787 PHPC-1230: Allow cloning UTCDateTime objects 2019-10-30 06:59:18 +01:00
Andreas Braun
87efc1b59d PHPC-1230: Allow cloning Undefined objects 2019-10-30 06:59:18 +01:00
Andreas Braun
847a02ff42 PHPC-1230: Allow cloning Timestamp objects 2019-10-30 06:59:18 +01:00
Andreas Braun
fd1984a59f PHPC-1230: Allow cloning Symbol objects 2019-10-30 06:59:18 +01:00
Andreas Braun
625ffaf54c PHPC-1230: Allow cloning regex objects 2019-10-30 06:59:18 +01:00
Andreas Braun
4b799ecce5 PHPC-1230: Allow cloning *key objects 2019-10-30 06:59:18 +01:00
Andreas Braun
519ded4324 PHPC-1230: Allow cloning Javascript objects 2019-10-30 06:59:18 +01:00
Andreas Braun
65aa7932e9 PHPC-1230: Allow cloning Int64 objects 2019-10-30 06:51:25 +01:00
Andreas Braun
4788a1a6f6 PHPC-1230: Allow cloning Decimal128 objects 2019-10-30 06:51:25 +01:00
Andreas Braun
117206db72 PHPC-1230: Allow cloning DBPointer objects 2019-10-30 06:51:25 +01:00
Andreas Braun
051694ddfb PHPC-1230: Allow cloning Binary objects 2019-10-30 06:51:25 +01:00
Andreas Braun
79afd5dbea PHPC-1230: Allow cloning ObjectID objects 2019-10-30 06:51:25 +01:00
Andreas Braun
349621a128 PHPC-348: Free cursor item on invalid BSON 2019-10-29 07:35:42 +01:00