php-src/ext/pdo_dblib/tests
Nikita Popov b10416a652 Deprecate passing null to non-nullable arg of internal function
This deprecates passing null to non-nullable scale arguments of
internal functions, with the eventual goal of making the behavior
consistent with userland functions, where null is never accepted
for non-nullable arguments.

This change is expected to cause quite a lot of fallout. In most
cases, calling code should be adjusted to avoid passing null. In
some cases, PHP should be adjusted to make some function arguments
nullable. I have already fixed a number of functions before landing
this, but feel free to file a bug if you encounter a function that
doesn't accept null, but probably should. (The rule of thumb for
this to be applicable is that the function must have special behavior
for 0 or "", which is distinct from the natural behavior of the
parameter.)

RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg

Closes GH-6475.
2021-02-11 21:46:13 +01:00
..
batch_stmt_ins_exec.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
batch_stmt_ins_sel_up_del.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
batch_stmt_ins_up.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
batch_stmt_rowcount.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
batch_stmt_transaction.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
batch_stmt_try.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_38955.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_45876.phpt Add MSSQL setup to Azure Pipelines build 2021-01-11 21:46:41 -05:00
bug_47588.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_50755.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug_54648.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_67130.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_68957.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_69592.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_69757.phpt limit size of result set so unit test runs reliably 2016-03-01 17:15:36 -05:00
bug_71667.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_73396.phpt Skip test if bigint type is unsupported by active TDS version 2020-05-08 15:13:40 -04:00
common.phpt Remove local variables 2019-02-03 21:03:00 +01:00
config.inc Update FreeTDS version detection related to bug #72969 2020-05-08 14:34:00 -04:00
datetime2.phpt Treat DATETIME2 columns like DATETIME 2017-11-10 17:20:33 -05:00
datetime_convert.phpt Fix #74243: allow locales.conf to drive datetime format 2017-10-31 17:52:59 -04:00
dbtds.phpt Expose TDS version as \PDO::DBLIB_ATTR_TDS_VERSION attribute on \PDO instance 2017-11-10 14:21:07 -05:00
dbversion.phpt Expose DB-Library version as \PDO::DBLIB_ATTR_VERSION attribute on \PDO instance 2017-01-27 18:38:56 -05:00
pdo_dblib_param_str_natl.phpt Add MSSQL setup to Azure Pipelines build 2021-01-11 21:46:41 -05:00
pdo_dblib_quote.phpt Deprecate passing null to non-nullable arg of internal function 2021-02-11 21:46:13 +01:00
README.md Add MSSQL setup to Azure Pipelines build 2021-01-11 21:46:41 -05:00
stringify_uniqueidentifier.phpt Use TDS version attribute to determine whether to skip tests 2017-11-10 14:36:35 -05:00
timeout.phpt Remove flakiness from tests 2021-01-13 19:39:41 -05:00
types.phpt Remove flakiness from tests 2021-01-13 19:39:41 -05:00

The pdo_mysql extension tests

This extension can be tested using Microsoft's Docker image for SQL Server on Linux:

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" -p 1433:1433 --name sql1 -h sql1 -d mcr.microsoft.com/mssql/server:2019-latest
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"

# and then from the root of php-src
PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0" PDO_DBLIB_TEST_USER="pdo_test" PDO_DBLIB_TEST_PASS="password" TESTS=ext/pdo_dblib make test