Commit Graph

3944 Commits

Author SHA1 Message Date
Jeremy Mikola
94ee50e5ef PHPC-1004: Rename ObjectID to ObjectId 2017-08-30 10:12:22 -04:00
Jeremy Mikola
aef71068a8 Revert "Use canonical ObjectID class name in tests"
This reverts commit 991cbe887e.
2017-08-30 10:02:17 -04:00
Jeremy Mikola
5d2a7741b7 Revert "PHPC-1004: Rename CursorId to CursorID"
This reverts commit 708c214034.
2017-08-30 10:02:10 -04:00
Derick Rethans
138ba06458 Merge branch 'v1.2' 2017-08-30 12:06:58 +01:00
Derick Rethans
cbb5f9f1f2 Merge remote-tracking branch 'derickr/PHPC-997-take3' into v1.2 2017-08-30 12:06:34 +01:00
Derick Rethans
d5aef90483 PHPC-997: Handle changes in field names in timelib 2017.05beta7 2017-08-30 12:05:33 +01:00
Jeremy Mikola
0a7d1ba851 Merge pull request #639 2017-08-29 13:11:43 -04:00
Jeremy Mikola
991cbe887e Use canonical ObjectID class name in tests 2017-08-29 09:47:50 -04:00
Jeremy Mikola
708c214034 PHPC-1004: Rename CursorId to CursorID 2017-08-29 09:47:50 -04:00
Jeremy Mikola
7db4c0d45b Merge pull request #637 2017-08-29 09:47:33 -04:00
Jeremy Mikola
d616162e13 PHPC-1001: Report field name for invalid UTF-8 and unsupported zval types 2017-08-29 08:39:58 -04:00
Jeremy Mikola
7f71683a50 Merge pull request #638 2017-08-29 08:30:15 -04:00
Jeremy Mikola
a5fe81bd06 PHPC-640: Revert TypeWrapper interface 2017-08-28 17:54:55 -04:00
Jeremy Mikola
3c6c1816d2 Merge pull request #634 2017-08-17 16:31:58 -04:00
Jeremy Mikola
7158ed16e8 PHPC-976: Add more test cases for default read and write concerns 2017-08-17 12:11:41 -04:00
Jeremy Mikola
f581777126 PHPC-976: RC and WC isDefault() tests don't need a server 2017-08-17 12:11:41 -04:00
Jeremy Mikola
cf62ee0efd Merge pull request #631 2017-08-15 18:10:36 -04:00
Jeremy Mikola
6175972e98 Ensure date.timezone is defined for UTCDateTimeInterface test 2017-08-14 12:28:13 -04:00
Jeremy Mikola
726fb9a071 PHPC-996: Remove support for PHP 5.4 2017-08-14 12:19:30 -04:00
Jeremy Mikola
0571e4bfb3 Merge pull request #630 2017-08-14 12:19:16 -04:00
Jeremy Mikola
1f3850d7c5 PHPC-994: Assume socklen_t is defined on Windows
This fixes macro redefinition warnings for HAVE_SOCKLEN_T, which were caused by CHECK_FUNC_IN_HEADER() injecting a definition. We can safely assume that Windows builds environments for PHP have socklen_t defined (as does libmongoc in its cmake config).
2017-08-14 11:55:09 -04:00
Jeremy Mikola
a0796cd058 Back to -dev 2017-08-10 14:57:21 -04:00
Jeremy Mikola
845850c8b8 Package 1.3.0beta1 1.3.0beta1 2017-08-10 14:55:59 -04:00
Jeremy Mikola
7e9eb60e13 Merge pull request #628 2017-08-10 14:54:40 -04:00
Jeremy Mikola
28baf2356b PHPC-349 and PHPC-981: Fix package builds for APM 2017-08-10 14:52:44 -04:00
Jeremy Mikola
47868190df Merge pull request #627 2017-08-10 12:56:58 -04:00
Jeremy Mikola
58324ad627 PHPC-992: Rename extended JSON functions to[Canonical|Relaxed]ExtendedJSON() 2017-08-10 12:56:47 -04:00
Jeremy Mikola
a61df735ee Merge pull request #626 2017-08-10 12:56:11 -04:00
Jeremy Mikola
7a9c02d929 toPHP() error test should not require servers 2017-08-10 12:21:29 -04:00
Jeremy Mikola
7434766d5a Revise comments about bson_iter_init() testing 2017-08-10 12:21:01 -04:00
Jeremy Mikola
b6a5e48549 PHPC-977: Bump libbson and libmongoc to 1.7.0 2017-08-10 12:20:13 -04:00
Jeremy Mikola
06d608b697 Merge pull request #624 2017-08-08 12:38:01 -04:00
Jeremy Mikola
ce328f1a89 PHPC-887: Throw for unexpected types in URI options array
Note: generic boolean options (e.g. "ssl") will continue to accept non-boolean types for BC, since we cast via bson_iter_as_bool(). However, RP and WC-specific boolean options (e.g. "slaveOk", "journal") will throw since they previously silently ignored non-boolean values.

In addition to revising read preference tests, this adds new tests for read concern and write concern options.
2017-08-08 09:41:47 -04:00
hassan
c3310143f3 PHPC-887: Throw for unexpected readPreference URI option type 2017-08-04 10:59:35 -04:00
Jeremy Mikola
223d1b9178 Merge pull request #623 2017-08-04 10:54:57 -04:00
Jeremy Mikola
7a79f14d67 Regression test for out of range maxStalenessSeconds option in URI string 2017-08-04 10:54:44 -04:00
Jeremy Mikola
3b171c795e PHPC-846: Throw if maxStalenessSeconds URI option is out of range 2017-08-04 10:54:44 -04:00
Jeremy Mikola
f1d2514b6b Merge pull request #621 2017-08-04 10:03:43 -04:00
Jeremy Mikola
ef4241c10e PHPC-988: Check for TypeWrapper::createFromBSONType() exception
If the userland function throws, we should return early and avoid assigning the uninitialized return value (zwrapper) to zchild. On PHP 5.x, such an assignment could cause a segfault.
2017-08-03 14:52:56 -04:00
Jeremy Mikola
36487bc0a9 PHPC-640: Create interfaces for BSON types classes
These interfaces are implemented by the corresponding BSON classes and intended to be used by TypeWrapper implementations.
2017-08-03 11:18:56 -04:00
Jeremy Mikola
f54286fef5 Merge pull request #619 2017-08-01 11:10:29 -04:00
Jeremy Mikola
ad3aeaf0d4 Test for iterating a Cursor with NoRewindIterator 2017-08-01 11:10:21 -04:00
Jeremy Mikola
c948825a3e Merge pull request #622 2017-08-01 10:30:39 -04:00
Jeremy Mikola
4335eae4cc PHPC-985: Timestamp::getIncrement() and getTimestamp() methods 2017-07-31 17:40:14 -04:00
Jeremy Mikola
caa518ec95 Merge pull request #618 2017-07-28 13:39:44 -04:00
Jeremy Mikola
98d3e02094 PHPC-941: Update BSON corpus tests for canonical and relaxed JSON
Generated from mongodb/specifications@f01908343f

Expected test failures are now defined in the generator script and have been updated for libbson changes.
2017-07-28 13:30:07 -04:00
Jeremy Mikola
0d30de6b3e Make toJSON() tests consistent with toCanonicalJSON() and toRelaxedJSON() 2017-07-28 13:30:06 -04:00
Jeremy Mikola
65f5091010 PHPC-941: Add MongoDB\BSON\toCanonicalJSON() and toRelaxedJSON()
In CDRIVER-2208, bson_as_json() (used by toJSON()) was reverted to its original output format. Canonical and relaxed extended JSON are now produced by bson_as_canonical_json() and bson_as_relaxed_json(), respectively. This commit removes toExtendedJSON() (added in 980f1fb01a) in favor of the new functions.

Implementations for the BSON functions have been moved to their own file, which is consistent with what we're doing for the APM subscriber functions.
2017-07-28 13:30:06 -04:00
Jeremy Mikola
331d387bb2 Revert "PHPC-977: Update tests for expected JSON output from libbson"
This reverts commit 2761072d24.
2017-07-28 13:30:06 -04:00
Jeremy Mikola
c5e859d59c PHPC-977: Bump libbson and libmongoc to 1.7.0-rc2 2017-07-28 13:29:55 -04:00