2619 Commits

Author SHA1 Message Date
Jeremy Mikola 5403404de5 Package 1.4.3 1.4.3 2018-04-19 10:26:25 -04:00
Jeremy Mikola b27017da66 Merge pull request #803 2018-04-18 15:37:29 -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 427854e092 PHPC-1152: Create implicit session for commands
This ensures that phongo_execute_command creates an implicit session (if supported and not explicit session was provided). In turn, this ensures that any command cursor shares the same session as its originating command.

By creating a Session object, we can ensure that the implicit session is destroyed during garbage collection when the last reference is removed.
2018-04-18 14:36:39 -04:00
Jeremy Mikola aec79b2f12 Refactor command and query execute functions
This corrects the function signatures to return a boolean indicating success instead of an integer (which was cast from a boolean).

Additionally, it restructures phongo_execute_command() to use a cleanup label, in anticipation of implicit session changes.
2018-04-18 13:37:58 -04:00
Jeremy Mikola 57d3f6e042 Merge pull request #811 2018-04-18 12:59:26 -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
Jeremy Mikola cee168b7ce Merge pull request #808 2018-04-17 10:36:04 -04:00
Jeremy Mikola 042c56ba85 Do not re-execute BulkWrite in WriteResult::getServer() test
bulkwrite_error-002.phpt already covers this case.
2018-04-17 10:35:39 -04:00
Katherine Walker 49ee50d0cc Merge pull request #804 2018-04-17 09:36:14 -04:00
Katherine Walker 22aef1cc2f BSONElement::chk() in MongoDB 2.6 doesn't like Timestamp and UTCDateTime _id values in the same collection 2018-04-17 09:35:51 -04:00
Katherine Walker 0e8cf55649 PHPC-1159: Test on specific server versions in Travis CI 2018-04-17 09:35:51 -04:00
Jeremy Mikola c84167982d Merge pull request #806 2018-04-16 13:20:29 -04:00
Jeremy Mikola 1904f7e935 Invalid namespace tests needs STANDALONE
In b29c423fda for PHPC-1057, Manager's execute methods were changed to perform server selection before invoking the phongo_execute functions, which throw InvalidArgumentExceptions such as this. Without a running standalone server, this test will encounter a server selection failure before we have a chance to parse the namespace string.
2018-04-16 12:05:57 -04:00
Jeremy Mikola f5d1084c53 Merge pull request #801 2018-04-16 11:28:29 -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
Jeremy Mikola 06f608059e Move up client argument for phongo_parse_session()
Client is required, while the opts and zval arguments are optional.
2018-04-16 11:16:21 -04:00
Jeremy Mikola 7622c08fd0 Merge pull request #802 2018-04-12 14:43:14 -04:00
Jeremy Mikola 44ee529743 Use longer maxAwaitTimeMS in changeStream test
This makes the test more robust, since 100ms may not be long enough for the change to appear on some runs.
2018-04-12 13:17:55 -04:00
Derick Rethans ca4fb16aea Merged pull request #799 2018-04-11 16:33:21 +01:00
Derick Rethans b847b11328 PHPC-1157: Upgrade bundled libmongoc and libbson to 1.9.4 2018-04-11 10:58:20 +01:00
Derick Rethans fc53a842eb Merged pull request #795 2018-04-11 10:36:39 +01:00
Derick Rethans cb81027747 PHPC-1156: Prefer Secure Transport over OpenSSL with --with-mongodb-ssl on Darwin 2018-04-11 10:36:10 +01:00
Jeremy Mikola cf0982b997 Back to -dev 2018-03-06 15:51:24 -05:00
Jeremy Mikola 7e7b4dd30f Package 1.4.2 1.4.2 2018-03-06 15:51:00 -05:00
Jeremy Mikola 3d682000dc Merge pull request #774 2018-03-06 15:41:01 -05:00
Jeremy Mikola b55c871b05 PHPC-1128: Bump libbson and libmongoc 1.9.3 2018-03-05 11:46:26 -05:00
Jeremy Mikola d52e09ad11 Back to -dev 2018-02-20 14:36:25 -05:00
Jeremy Mikola 138897e595 Package 1.4.1 1.4.1 2018-02-20 14:35:55 -05:00
Derick Rethans 429b9cbfcf Merged pull request #761 2018-02-20 14:55:33 +00:00
Derick Rethans 5d9ff9d82d PHPC-1125: Out-of-source compilation with bundled zlib fails 2018-02-20 14:55:09 +00:00
Jeremy Mikola 32d1fbc54f Merge pull request #759 2018-02-20 08:52:26 -05:00
Jeremy Mikola ea27b99f81 PHPC-1124: Fix SASL include path 2018-02-15 10:27:34 -05:00
Jeremy Mikola dc2d0e3195 Merge pull request #753 2018-02-14 11:26:39 -05:00
Jeremy Mikola e0a4f68c62 Restore @bjori as an inactive lead :D
The inner workings of PECL's web rendering remain a mystery. Previous changes in 55dfa5896c did not have the desired effect.
2018-02-14 11:26:31 -05:00
Jeremy Mikola 494e1d969a Back to -dev 2018-02-08 22:59:28 -05:00
Jeremy Mikola 3692650604 Package 1.4.0 1.4.0 2018-02-08 22:58:53 -05:00
Jeremy Mikola 2e4c5de437 Back to -dev 2018-02-06 14:05:26 -05:00
Jeremy Mikola 3686f538ef Package 1.4.0RC2 1.4.0RC2 2018-02-06 14:04:37 -05:00
Jeremy Mikola 55dfa5896c Add @kvwalker and deprecate @bjori :) 2018-02-06 13:58:14 -05:00
Katherine Walker 876492a100 Merge pull request #750 2018-02-06 13:15:28 -05:00
Katherine Walker 2cdc10fc79 Append maxAwaitTimeMS as int64 instead of int32 2018-02-06 13:12:58 -05:00
Katherine Walker bc5ce89caf PHPC-1109: Support batchSize getMore option for command cursors 2018-02-06 13:12:58 -05:00
Jeremy Mikola 3fa8991fd1 Merge pull request #748 2018-01-30 08:27:03 -05:00
Jeremy Mikola 6ffef1858f Fix Session protos 2018-01-30 08:26:48 -05:00
Derick Rethans 3b9fb306c4 Merged pull request #747 2018-01-30 10:12:20 +00:00
Derick Rethans 6a65f9f3cd Fixed PHPC-1104: pecl package misses zlib sources 2018-01-30 10:11:36 +00:00
Jeremy Mikola 7970793235 Merge pull request #746 2018-01-29 11:50:53 -05:00