mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
b10416a652
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. |
||
---|---|---|
.. | ||
batch_stmt_ins_exec.phpt | ||
batch_stmt_ins_sel_up_del.phpt | ||
batch_stmt_ins_up.phpt | ||
batch_stmt_rowcount.phpt | ||
batch_stmt_transaction.phpt | ||
batch_stmt_try.phpt | ||
bug_38955.phpt | ||
bug_45876.phpt | ||
bug_47588.phpt | ||
bug_50755.phpt | ||
bug_54648.phpt | ||
bug_67130.phpt | ||
bug_68957.phpt | ||
bug_69592.phpt | ||
bug_69757.phpt | ||
bug_71667.phpt | ||
bug_73396.phpt | ||
common.phpt | ||
config.inc | ||
datetime2.phpt | ||
datetime_convert.phpt | ||
dbtds.phpt | ||
dbversion.phpt | ||
pdo_dblib_param_str_natl.phpt | ||
pdo_dblib_quote.phpt | ||
README.md | ||
stringify_uniqueidentifier.phpt | ||
timeout.phpt | ||
types.phpt |
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