Jeremy Mikola
0e737ebca1
Remove XFAIL tests depending on PHPC-1066
2018-01-03 12:58:10 -05:00
Jeremy Mikola
df0f842ef8
Merge pull request #722
2018-01-03 12:57:17 -05:00
Jeremy Mikola
356c90beb5
Update Makefile target for cleaning test dirs
...
This prunes the utils directory instead of depending on a whitelist, which would need to be more frequently updated.
2018-01-03 12:57:09 -05:00
Derick Rethans
9a25e27274
Merged pull request #719
2018-01-03 10:32:28 +00:00
Derick Rethans
d981fff0d3
PHPC-1065: Enable BSON corpus tests for deprecated types
2018-01-03 10:31:52 +00:00
Derick Rethans
9bc8fc4799
Merged pull request #718
2018-01-03 10:31:11 +00:00
Derick Rethans
2dd9f1f219
PHPC-1038: "documents" key in "command" in APM's commandStarted for "insert" is missing
2018-01-02 12:40:52 +00:00
Jeremy Mikola
165f1b5c5e
Back to -dev
2017-12-21 17:03:08 -05:00
Jeremy Mikola
de6d88a9c8
Package 1.4.0beta1
1.4.0beta1
2017-12-21 16:55:37 -05:00
Jeremy Mikola
1518bfdcf0
Merge pull request #714
2017-12-21 16:52:42 -05:00
Jeremy Mikola
6f1bb0f196
PHPC-987: Additional causal consistency spec tests
2017-12-21 16:52:30 -05:00
Jeremy Mikola
4e14a11cd1
Remove trailing whitespace
2017-12-21 16:52:30 -05:00
Jeremy Mikola
5b891395cc
Fix license header for Session.c
2017-12-21 16:45:56 -05:00
Jeremy Mikola
4d05867fff
Merge pull request #715
2017-12-21 16:43:24 -05:00
Jeremy Mikola
d70809e8e8
Update reference to libmongoc in error message
2017-12-21 16:41:26 -05:00
Jeremy Mikola
6b3c580cc5
PHPC-1037: Update pkg-config requirement for 1.9.0
2017-12-21 16:40:06 -05:00
Jeremy Mikola
43d74bb00d
Merge pull request #713
2017-12-21 16:29:33 -05:00
Jeremy Mikola
820106a6d3
PHPC-1037: Define new constants in config.w32
2017-12-21 16:20:14 -05:00
Jeremy Mikola
24fd762e78
Merge pull request #712
2017-12-20 23:03:55 -05:00
Jeremy Mikola
bfbbbf1bab
Regression test for empty command segfault (CDRIVER-2431)
2017-12-20 23:02:50 -05:00
Jeremy Mikola
e7d88b19f2
PHPC-1037: Bump libbson and libmongoc to 1.9.0
2017-12-20 22:41:06 -05:00
Jeremy Mikola
15673528a1
Merge pull request #710
2017-12-20 22:39:09 -05:00
Jeremy Mikola
d99153bfb7
PHPC-980: Skip session spec test on Travis (pending 3.6)
2017-12-20 22:24:25 -05:00
Jeremy Mikola
e1b68f5db4
PHPC-987: Causal consistency spec tests
2017-12-20 22:24:25 -05:00
Jeremy Mikola
939e96b6df
PHPC-987: Add operation time to Session
2017-12-20 22:24:25 -05:00
Jeremy Mikola
98c4d0965a
Merge pull request #709
2017-12-20 11:35:09 -05:00
Jeremy Mikola
d901c1a0ba
PHPC-986: APM-based tests for retryable writes
...
PHPC did not require any code changes to support retryable writes, as existing URI option processing allows enabling of retryable writes in libmongoc. These tests utilize APM to assert that certain commands include or exclude a transaction ID.
2017-12-20 11:34:44 -05:00
Jeremy Mikola
a1f694bf47
Merge pull request #711
2017-12-19 09:35:53 -05:00
Jeremy Mikola
37dbda7f6e
PHPC-980: Use correct topology constant in CLEANUP()
2017-12-19 08:52:26 -05:00
Jeremy Mikola
01d01f462e
Merge pull request #707
2017-12-18 14:40:12 -05:00
Jeremy Mikola
c94405a925
Use uint32_t for server_id args and struct fields
...
Since Manager methods no longer pass -1 to execute functions in php_phongo.c, server_id should always be unsigned.
2017-12-18 12:11:57 -05:00
Jeremy Mikola
a0d579c6e5
PHPC-1066: XFAIL tests for unknown options to execute methods
...
These tests were extracted from previous tests that combined invalid/unknown options.
2017-12-18 12:11:57 -05:00
Jeremy Mikola
b29c423fda
PHPC-1057: Refactor option parsing for execute methods
...
Execute options are now parsed via php_array functions, which makes the options case-sensitive.
A helper function is now used to convert legacy options for the original three execute methods into an array. This simplifies option parsing in php_phongo.c.
Additionally, Manager methods now perform their own server selection, which means that execute functions in php_phongo.c can rely on a server_id being provided.
Tests have been updated to expect a serverId option when relevant (e.g. query opts). Additionally, error tests for execute methods have been improved so that invalid values for all known options are tested.
2017-12-18 12:11:57 -05:00
Jeremy Mikola
140bf287d5
Fix titles in Server tests
2017-12-18 12:11:57 -05:00
Jeremy Mikola
4f8c20bff8
Merge pull request #680
2017-12-18 12:10:10 -05:00
Jeremy Mikola
b2d85bfeb2
PHPC-980: Driver session spec tests
2017-12-15 16:25:56 -05:00
Jeremy Mikola
d1d9d4a2bd
PHPC-980: MongoDB\Driver\Session and "session" option
...
This introduces a Session class, which wraps libmongoc's client session object. Additionally, we support a "session" option on Manager and Server execute methods to allow operations to be associated with an explicit session (mostly relevant for causal consistency).
2017-12-15 16:25:56 -05:00
Jeremy Mikola
d39bf88505
Merge pull request #705
2017-12-15 11:23:52 -05:00
Jeremy Mikola
03af904b5d
PHPC-1071: Report class name for unexpected object values
...
This only updates exceptions where object types are entirely unexpected. For instance, options that expect a BSON document (i.e. array or object) need not use this macro, as any object would be accepted.
2017-12-15 11:23:44 -05:00
Jeremy Mikola
f8009060cd
PHPC-1070: Macro for accessing zval class or type name
2017-12-15 11:23:44 -05:00
Jeremy Mikola
983aed6042
Merge pull request #706
2017-12-15 10:59:08 -05:00
Jeremy Mikola
4924d8b0de
PHPC-1072: mongoc_client_command_with_opts() reply must always be freed
...
Previously, reply might leak if phongo_execute_command() returned due to an error (result=false).
2017-12-15 10:58:09 -05:00
Derick Rethans
2be8af5d42
Merged pull request #700
2017-12-14 17:51:59 +00:00
Derick Rethans
d3953f62a2
PHPC-1027: Introduce classes for deprecated BSON types (DBPointer)
2017-12-14 10:49:18 +00:00
Derick Rethans
a9f6e3bb09
PHPC-1027: Introduce classes for deprecated BSON types (Symbol)
2017-12-14 10:49:18 +00:00
Derick Rethans
c780a27926
PHPC-1027: Introduce classes for deprecated BSON types (Undefined)
2017-12-13 16:09:49 +00:00
Jeremy Mikola
a0810850da
Merge pull request #703
2017-12-12 15:59:58 -05:00
Jeremy Mikola
f40db84527
Fix expected output for Server::executeCommand() test
2017-12-12 15:55:12 -05:00
Jeremy Mikola
67c5e8cfb2
PHPC-834: Process readPreference for executeCommand() on PHP 5.x
2017-12-12 15:52:43 -05:00
Jeremy Mikola
87d70245f7
Merge pull request #701
2017-12-12 15:27:42 -05:00