Commit Graph

3944 Commits

Author SHA1 Message Date
Andreas Braun
d70efb6ea6 PHPC-1700: Fix memory leak when read preference is invalid (#1179)
* PHPC-1700: Fix memory leak in prep_tagsets

* PHPC-1701: Add regression test for memory leak in prep_authmechanisms
2020-11-25 10:39:38 +01:00
Calvin Buckley
b581f2a3e4 PHPC-1706: Don't try linking against libresolv on AIX (#1172)
On AIX, the resolver functions are in libc, so trying libresolv
will cause the checks to fail. The behaviour should be instead
like AC_SEARCH_LIBS.

This hardcodes a check not to use libresolv on AIX. Better than
nothing, but it may not compensate for other systems without a
libresolv.
2020-11-24 10:47:31 +01:00
Andreas Braun
5e7454ca8f Merge branch 'v1.9'
* v1.9:
  Test against PHP 8.0 and 8.1
2020-11-11 12:42:34 +01:00
Andreas Braun
075edbf5c3 Test against PHP 8.0 and 8.1 2020-11-11 12:42:12 +01:00
Andreas Braun
d5a19d8c12 Merge branch 'v1.9'
* v1.9:
  Back to -dev
  Package 1.9.0RC1
2020-11-10 20:51:03 +01:00
Andreas Braun
968f4678cd Back to -dev 2020-11-10 20:50:53 +01:00
Andreas Braun
bc709e74cb Package 1.9.0RC1 1.9.0-RC1 2020-11-10 20:46:24 +01:00
Andreas Braun
82fda4d4f3 Merge branch 'v1.9'
* v1.9:
  Downgrade to stable libmongoc version
2020-11-10 20:02:44 +01:00
Andreas Braun
3a646c66e1 Downgrade to stable libmongoc version
This reverts commit 7274d497c1.
2020-11-10 20:01:54 +01:00
Andreas Braun
8a2b148d7f Master branch is now 1.10-dev 2020-11-10 19:59:26 +01:00
Andreas Braun
159f1b57d1 PHPC-1704: Check for standard and date extensions on Windows builds (#1178)
* PHPC-1704: Check for standard and date extensions on Windows builds

In PHP 8, PHP 7.3.25+, and PHP 7.4.13+, ADD_EXTENSION_DEP can correctly check for the date and standard extensions. On older versions, we have to continue to assume that these extensions are in fact installed.

* Be more "adventurous" with version checks

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2020-11-10 16:35:00 +01:00
Andreas Braun
05ce4fbb14 Merge branch 'v1.8'
* v1.8:
  Back to -dev
  Package 1.8.2
  Bump bundled libmongoc to 1.17.2 (#1176)
2020-11-05 13:05:59 +01:00
Andreas Braun
70013876ad Back to -dev 2020-11-05 12:45:13 +01:00
Andreas Braun
5514f971b2 Package 1.8.2 1.8.2 2020-11-05 12:42:50 +01:00
Andreas Braun
dd3db92b93 Bump bundled libmongoc to 1.17.2 (#1176) 2020-11-04 15:06:51 +01:00
Andreas Braun
cdf074a309 Merge pull request #1175 from alcaeus/phpc-1691
PHPC-1691: Provide Iterator implementation for cursors
2020-11-04 03:57:42 +01:00
Andreas Braun
a0be179a70 PHPC-1691: Provide Iterator implementation for cursors 2020-10-29 19:38:14 +01:00
Andreas Braun
df547c630c Add missing fallthrough label 2020-10-29 16:33:55 +01:00
Andreas Braun
b8c7d2d8c4 PHPC-1695: Run appveyor tests on PHP 8 (#1174) 2020-10-29 12:57:03 +01:00
Andreas Braun
60febd0f28 PHPC-1699: Ensure all argument parsing errors throw InvalidArgumentException (#1173)
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
2020-10-28 08:20:32 +01:00
Andreas Braun
c07159a3c5 Merge branch 'v1.8'
* v1.8:
  Fix wrong assignment of MONGOC_HAVE_SS_FAMILY (#1169)
2020-10-22 14:36:35 +02:00
Andreas Braun
9e9acf427c Fix wrong assignment of MONGOC_HAVE_SS_FAMILY (#1169) 2020-10-22 14:34:55 +02:00
Andreas Braun
8e4cefa44e Merge pull request #1166 from jmikola/phpc-1631
PHPC-1631: Support PHP 8
2020-10-14 10:47:37 +02:00
Jeremy Mikola
ca4c52eb1c PHPC-1692: Test suite fixes for PHP 8 2020-10-13 15:24:02 +02:00
Jeremy Mikola
35f589b21e PHPC-1697: Fix MongoDB\Driver\Command::__construct() arginfo 2020-10-13 15:24:02 +02:00
Jeremy Mikola
4308923258 PHPC-1690: Cursor must implement IteratorAggregate for PHP 8 2020-10-13 15:24:02 +02:00
Jeremy Mikola
03c8f81edb PHPC-1693: Fix MongoDB\BSON\Regex::__construct() arginfo 2020-10-13 15:24:02 +02:00
Andreas Braun
d785d5e15e PHPC-1689: Allow driver to compile with PHP 8
* PHPC-1689: Remove remainder of TSRMLS_* macros
* PHPC-1689: Add compatibility macro for PHP 8 object change
* PHPC-1689: Replace PHP_CHECK_GCC_ARG with AX_CHECK_COMPILE_FLAG
* PHPC-1689: phongo_compat_object_handler_type and macros
* PHPC-1689: clone_object handlers
* PHPC-1689: compare_object handlers
* PHPC-1689: replace zend_hash_init_ex with zend_hash_init
* PHPC-1689: get_debug_info and get_properties handlers
2020-10-13 15:24:02 +02:00
Andreas Braun
943eedfb90 PHPC-1694: Add PHP 8 nightly to Travis CI 2020-10-12 13:18:28 +02:00
Jeremy Mikola
9fc51c842b PHPC-1698: fix prep_tagsets leak for ReadPreference::__set_state (#1167) 2020-10-12 12:52:19 +02:00
Andreas Braun
501d517c97 Merge branch 'v1.8'
* v1.8:
  Back to -dev
  Package 1.8.1
  PHPC-1687: Always free reply from commit_transaction
2020-10-06 13:20:48 +02:00
Andreas Braun
45979edcc8 Back to -dev 2020-10-06 13:19:30 +02:00
Andreas Braun
56a123a21c Package 1.8.1 1.8.1 2020-10-06 13:18:43 +02:00
Jeremy Mikola
a2ccc1d161 PHPC-1687: Always free reply from commit_transaction 2020-10-06 13:07:54 +02:00
Jeremy Mikola
7f52ebdc3b PHPC-1687: Always free reply from commit_transaction 2020-10-03 20:51:30 -04:00
Jeremy Mikola
ec3471a9bc Merge branch 'v1.8' 2020-09-16 12:01:13 -04:00
Jeremy Mikola
1d70e1a3f5 PHPC-1683: Collect WCE error labels in libmongoc bulk write replies
Also adds additional type and error checking to phongo_exception_append_error_labels.
2020-09-16 11:59:54 -04:00
Andreas Braun
a42ece59cc PHPC-1167: Avoid dangling session pointer in bulk writes (#1156) 2020-07-31 14:13:51 +02:00
Andreas Braun
65e9fa639a Merge branch 'v1.8'
* v1.8:
  Back to -dev
  Package 1.8.0
  Bump libmongoc to 1.17.0 (#1158)
2020-07-31 07:54:03 +02:00
Andreas Braun
0962b420ea Back to -dev 2020-07-31 07:53:05 +02:00
Andreas Braun
f63388697e Package 1.8.0 1.8.0 2020-07-31 07:46:48 +02:00
Jeremy Mikola
137a4ec616 Bump libmongoc to 1.17.0 (#1158) 2020-07-31 07:34:49 +02:00
Jeremy Mikola
b1b4122e85 Fix titles of Server session pinning tests 2020-07-29 16:44:07 -04:00
Jeremy Mikola
5ec48480db Use aggregate with $out in executeReadWriteCommand tests
MongoDB 4.0.x (and possibly earlier) happens to require an $out stage for aggregate if a writeConcern option would be used. While this test doesn't use a write concern, it could inherit one from MONGODB_URI.

As for findAndModify, that is only considered a write command (does not accept a readConcern option).
2020-07-29 16:44:07 -04:00
Jeremy Mikola
b8bd32f8f3 Use executeCommand for create in txn pinning tests
The previous inconsistency was likely the result of copypasta (especially where executeReadCommand was used). There is no issue with using executeCommand here since an explicit write concern is provided (nothing will be inherited).
2020-07-29 16:44:07 -04:00
Jeremy Mikola
bc73a1c50b PHPC-169: Test read and write concern inheritance 2020-07-29 16:44:07 -04:00
Andreas Braun
7274d497c1 Bump libmongoc to latest version (#1152)
* PHPC-1420: Fix stack smashing when using mixed replica set config

* Support new debug assertion switch for libmongoc

* Only set MONGOC_ENABLE_DEBUG_ASSERTIONS when compiling against bundled libs
2020-07-28 20:44:02 +02:00
Andreas Braun
be630dcbe4 PHPC-479: Print library version for libmongoc, libbson, and libmongocrypt (#1153) 2020-07-28 09:58:43 +02:00
Jeremy Mikola
c81330c077 Remove trailing space in generated comments 2020-07-23 11:36:09 -04:00
Jeremy Mikola
96f97f8d43 PHPC-1653: Resync BSON corpus spec tests
Syncs tests with mongodb/specifications@1713439515. Includes tests for PHPC-1655 and PHPC-1652.

Adds logic to canonicalize $numberDouble values, which allows previously skipped tests to pass. This was noticed because SPEC-1537 changed the description of these tests and they were no loner skipped by convert-bson-corpus-tests.php.
2020-07-23 11:36:09 -04:00