Commit Graph

7 Commits

Author SHA1 Message Date
Andreas Braun deead9687e PHPC-1716 Allow configuring server API version in manager (#1204)
* Introduce MongoDB\Driver\ServerApi

* Accept serverApi driver option

* Introduce create_test_manager factory to create manager

A centralised entry point is required to inject the API_VERSION env variable later.

* Add build variant to test with requireApiVersion=true

* Fix wrong configuration for auth variable

This changed when migrating from our own scripts to drivers-evergreen-tools and was not updated properly, causing all tests to run with auth disabled.

* Declare ZEND_PARSE_PARAMETERS_NONE macro

This macro is missing on PHP < 7.3

* Remove duplicated API param storage

* Add missing semicolons

* Add ZEND_PARSE_PARAMETERS_NON_EX macro

* Extract error handling functionality to separate macros

* Throw if internal mongoc_server_api_t is already initialised

* Use imported namespaces in tools file

* Fix type info for reflection

* Use American English spelling

* Only use typed serialize signature on PHP 8+

* Update PHONGO_PARSE_PARAMETERS_NONE macro for PHP < 7.3

* Remove usage of ZEND_STRL within zend_hash_str_add

This causes compile failures on PHP < 7.3 that I have yet to understand.

* Fix errors in new PHONGO_PARSE_PARAMETERS macros
2021-03-26 15:43:48 +01:00
Jeremy Mikola 05c83bdef2 PHPC-1132: Remove HHVM checks in test suite 2018-02-27 09:48:25 -05:00
Derick Rethans 4509d0f6f0 Skip this test on HHVM, as the timezone is 'UTC' there 2016-09-20 15:00:35 +01:00
Derick Rethans 04e10304dd Explicitly set date.timezone to prevent warnings if not set in php.ini 2016-09-07 17:06:49 +01:00
Jeremy Mikola fa5815e513 Use string UTCDateTime argument for 32 and 64-bit compatibility 2016-08-04 14:03:37 -04:00
Jeremy Mikola 35d53d4504 Remove unnecessary SKIPIFs from BSON tests 2016-08-04 14:03:37 -04:00
Jeremy Mikola 188c7ecf6f PHPC-631: Regression tests for UTCDateTime::toDateTime() 2016-06-21 16:38:32 -04:00