Commit Graph

3944 Commits

Author SHA1 Message Date
Hannes Magnusson
23f8316617 PHPC-370: Hardcode return_value_used to 1 in PHP7 2015-12-16 10:15:28 +00:00
Hannes Magnusson
66cfaef8a5 PHPC-370: return_value_ptr and return_value_used removed in PHP7 2015-12-16 10:15:28 +00:00
Hannes Magnusson
13a256e2a9 PHPC-369: Use the new Z_<CLASSNAME>_OBJ_P() macros 2015-12-16 10:13:51 +00:00
Hannes Magnusson
20a3044dd1 PHPC-369: Split PHP5 and PHP7 style custom object struct declrations 2015-12-16 10:13:02 +00:00
Hannes Magnusson
4c918b8e02 PHPC-368: Refactor MongoDB\Driver\Manager ctor 2015-12-16 10:10:31 +00:00
Hannes Magnusson
4f418cb3e6 Fix const casting warning in php_array_api 2015-12-16 10:09:20 +00:00
Hannes Magnusson
16566dc34a Resync with GitHub: https://github.com/sgolemon/php-array-api 2015-12-16 10:09:20 +00:00
Jeremy Mikola
d910576664 Back to -dev 2015-12-15 14:45:58 -05:00
Jeremy Mikola
3fbae8ddce Include libbson and libmongoc version files in PECL package 2015-12-15 10:51:22 -05:00
Jeremy Mikola
102461b32a Add 1.1.0 release notes 1.1.0 2015-12-15 10:21:33 -05:00
Jeremy Mikola
6b3988e0d6 Bump extension version to 1.1.0 2015-12-15 00:55:33 -05:00
Jeremy Mikola
64464121f2 Merge pull request #168 2015-12-14 18:01:57 -05:00
Jeremy Mikola
9d04bcd69c PHPC-509: Default Manager URI to "mongodb://localhost:27017/" 2015-12-14 18:01:31 -05:00
Jeremy Mikola
79c268ae14 Merge pull request #167 2015-12-14 18:00:34 -05:00
Jeremy Mikola
6d78c432f2 PHPC-448: Fix arginfo for ReadConcern constructor
The first argument is not required.
2015-12-14 15:37:47 -05:00
Jeremy Mikola
d771285b2c Merge pull request #163 2015-12-14 15:18:48 -05:00
Jorgen Evens
209ab0605c PHPC-514: Fix --with-mongodb-sasl flag
Previously the directory specified using --with-mongodb-sasl=DIR was ignored.
2015-12-14 15:18:30 -05:00
Jeremy Mikola
7dad72fe7d Merge pull request #166 2015-12-14 15:05:53 -05:00
Hannes Magnusson
f912475b83 PHPC-512: Disable async stream connections
When doing async connections we can't properly determine if we should connect over IPv6 or IPv4. PHP will unfortunately default to connecting over IPv6 (when compiled in support, with minor runtime check), while mongod does not support IPv6 by default.

When then creating the IPv6 connection asynchronously, PHP hits EINPROGRESS and will happily return the socket as valid.

There currently is no way to configure these functions to prefer IPv4. The best we can do for now is to not connect asynchronously as then we'll properly discover that the IPv6 socket failed, and then continue through the list of addrinfo and next pickup the IPv4 address which works.

Fixes #133
2015-12-14 14:58:00 -05:00
Jeremy Mikola
a40989a6be Merge pull request #165 2015-12-14 13:37:40 -05:00
Jeremy Mikola
3ad2ace6f2 PHPC-508: Construct valid stream URI for IPv6 literals 2015-12-14 13:21:38 -05:00
Jeremy Mikola
a062f2d5da Merge pull request #158 2015-12-11 15:27:02 -05:00
Jeremy Mikola
90d438e626 PHPC-448: Manager::getReadConcern() and URI test 2015-12-11 15:22:55 -05:00
Jeremy Mikola
12e6907e41 PHPC-448: Support readConcern option on Query 2015-12-11 15:22:55 -05:00
Jeremy Mikola
92348caffc PHPC-448: Implement ReadConcern class 2015-12-11 14:44:59 -05:00
Jeremy Mikola
1b2791c3a3 Fix include for mongoc-write-concern-private.h 2015-12-11 14:44:59 -05:00
Jeremy Mikola
f131403dc3 Merge pull request #161 2015-12-11 14:43:11 -05:00
Hannes Magnusson
6b921e5d7c Fix package license to be consistent with the source files 2015-12-11 14:42:58 -05:00
Jeremy Mikola
817e8ee7f0 Merge pull request #160 2015-12-11 14:41:29 -05:00
Hannes Magnusson
b6bbfd73a2 Accept MongoDB 3.2 package repo public keys on test VM 2015-12-11 14:41:15 -05:00
Jeremy Mikola
70c5cd3427 Merge pull request #157 2015-12-11 14:37:00 -05:00
Jeremy Mikola
bea901d170 PHPC-443: Support "bypassDocumentValidation" option in BulkWrite 2015-12-11 13:43:14 -05:00
Jeremy Mikola
018f216f40 Merge pull request #156 2015-12-10 12:17:06 -05:00
Jeremy Mikola
b64561bfb0 Update package repo public key for Travis CI builds 2015-12-10 12:16:36 -05:00
Jeremy Mikola
3124eb08c7 Define STANDALONE as MongoDB 3.2 on Travis CI 2015-12-10 12:16:36 -05:00
Jeremy Mikola
261da85e81 Bump libmongoc for CDRIVER-1046 memory leak fix 2015-12-10 12:16:36 -05:00
Jeremy Mikola
44ee3a346a PHPC-450: failReceivedGetmore does not support getMore commands
The fail point used in this test does not yet support 3.2's getMore command, so this must be run on 3.0 (or earlier). See: SERVER-21831

This change also splits the test into query/command variants, corrects the title (which was apparently copied from cursor-getmore-004.phpt), and removes the use of data fixtures (small documents inserted within the test work just fine for its purposes).
2015-12-10 12:16:36 -05:00
Jeremy Mikola
dee9ff9566 PHPC-450: Don't assert exact isMaster response when dumping Servers
Since isMaster's response varies by server version, we can omit it from expected Server dump output.
2015-12-10 12:16:36 -05:00
Jeremy Mikola
b54a8bf05b PHPC-450: Split query tests for OP_QUERY and find command
This also entails a change to done/end_of_event cursor field assertions. These are internal libmongoc cursor fields and their values aren't relevant to the tests. In the future, we may consider removing them from the Cursor's dump output.
2015-12-10 12:16:36 -05:00
Jeremy Mikola
8e67243c12 Add MongoDB 3.0 replica set test environment 2015-12-10 12:16:36 -05:00
Jeremy Mikola
d08d974ad3 PHPC-450: Profiled aggregate commands log the collection NS in 3.2 2015-12-10 12:16:36 -05:00
Jeremy Mikola
a2e3b47f60 PHPC-450: Update open cursor check for MongoDB 3.2 2015-12-10 12:16:36 -05:00
Derick Rethans
8e882a200d Merge branch 'pr/152' — fixes PHPC-502 and issue #149 2015-12-10 11:16:28 +00:00
Derick Rethans
76fce748c4 Use more descriptive unused value 2015-12-10 11:14:36 +00:00
Hannes Magnusson
85b437a1f7 Fixed PHPC-502: bson_init_static(): precondition failed: data 2015-12-10 11:14:12 +00:00
Jeremy Mikola
78c177c8e2 Use consistent name for MongoDB 3.0 test server 2015-12-09 13:03:03 -05:00
Jeremy Mikola
e00ff02f52 Merge pull request #155 2015-12-08 14:55:26 -05:00
Jeremy Mikola
a504d059ec PHPC-450: Enable majority read concern by default in MO
See: 10gen/mongo-orchestration#207 and 10gen/mongo-orchestration#208
2015-12-08 14:54:55 -05:00
Jeremy Mikola
9584ba9b12 PHPC-450: Use MongoDB 3.2 final for testing 2015-12-08 14:54:52 -05:00
Jeremy Mikola
ae26929d63 Make server startup via MO more robust
Use a longer timeout when starting servers and dump failed HTTP response headers on error.
2015-12-08 14:50:26 -05:00