php-src/ext/pdo_mysql/tests
Kamil Tekiela dbfc9f99d1
Merge branch 'PHP-8.0'
* PHP-8.0:
  Fixed bug #81037 PDO discards error message text from prepared statement

Closes GH-6978.
2021-05-14 12:04:22 +01:00
..
foo Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
bug41125.phpt Fixed bug #72368 2020-12-10 16:53:08 +01:00
bug44327.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
bug46292.phpt Partially deprecate Serializable 2021-04-28 16:55:14 +02:00
bug53551.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug53782.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug54929.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug63176.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug63185.phpt Add CLEAN sections to mysqli and PDO mysql tests 2021-03-15 11:01:12 +01:00
bug66141.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug66528.phpt Fixed bug #66528 2020-10-28 12:18:02 +01:00
bug66878.phpt Fixed bug #66878 2020-12-09 16:38:22 +01:00
bug67004.phpt Fixed bug #67004 2020-12-11 12:52:59 +01:00
bug68371.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug70066.phpt Backport fix for bug #70066 2020-12-10 09:58:47 +01:00
bug70272.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug70389.phpt Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
bug70862.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug71145.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
bug71569.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug75177.phpt Add CLEAN sections to mysqli and PDO mysql tests 2021-03-15 11:01:12 +01:00
bug76815.phpt Add CLEAN sections to mysqli and PDO mysql tests 2021-03-15 11:01:12 +01:00
bug77289.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug78152.phpt Fixed bug #78154 2020-12-09 12:46:47 +01:00
bug79132.phpt Fixed bug #79132 2020-12-11 16:35:03 +01:00
bug79375.phpt Fix bug #79375 2020-10-28 11:01:47 +01:00
bug79596.phpt Merge branch 'PHP-7.4' 2020-05-15 09:13:22 +02:00
bug79872.phpt Fixed bug #79872 by improving error message 2020-12-10 11:46:29 +01:00
bug80458.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
bug80808.phpt Fixed bug #80808 2021-03-02 10:59:34 +01:00
bug80908.phpt Fixed bug #80908 2021-04-26 11:50:12 +02:00
bug81037.phpt Fixed bug #81037 PDO discards error message text from prepared statement 2021-05-14 11:54:49 +01:00
bug_33689.phpt PDO MySQL: Make test libmysql compatible 2020-12-18 11:28:15 +01:00
bug_37445.phpt Update PDO parameter names 2020-10-05 15:51:36 +02:00
bug_38546.phpt Fix tests for MariaDB 2020-11-02 09:58:46 +01:00
bug_39483.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug_39858.phpt PDO MySQL: Normalize handling of empty stored procedure result set 2020-12-08 17:01:56 +01:00
bug_41125.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
bug_41698.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_41997.phpt Add CLEAN sections to mysqli and PDO mysql tests 2021-03-15 11:01:12 +01:00
bug_42499.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug_43371.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_44454.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug_44707.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug_45120.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug_50323.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_51670.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_61207.phpt Add all the missing parameter types to stubs 2020-08-13 14:47:18 +02:00
bug_61411.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
bug_61755.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_64705.phpt Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails 2020-08-11 17:12:48 +02:00
bug_74376.phpt Fix bug #79375 2020-10-28 11:01:47 +01:00
bug_pecl_7976.phpt Fix stmt_free_result implementation and usage 2020-12-09 11:13:48 +01:00
bug_pecl_12925.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
change_column_count.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
common.phpt Remove local variables 2019-02-03 21:03:00 +01:00
config.inc Merge branch 'PHP-7.4' into PHP-8.0 2020-11-17 13:16:17 +01:00
CONFLICTS Implement fine-grained conflict handling 2019-02-20 11:20:40 +01:00
last_insert_id.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
mysql_pdo_test.inc Reindent phpt files 2020-02-03 22:52:20 +01:00
native_types.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
PDO_getAvaliableDrivers.phpt Add and fix SKIPIF sections 2018-02-04 17:26:37 +01:00
pdo_mysql___construct_ini.phpt Run tidy 2020-09-18 14:28:32 +02:00
pdo_mysql___construct_options_libmysql.phpt PDO MySQL: Fix libmysql option test 2020-12-11 12:20:02 +01:00
pdo_mysql___construct_options.phpt Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
pdo_mysql___construct_uri.phpt Add basic libmysqlclient CI job 2020-12-18 12:52:54 +01:00
pdo_mysql___construct.phpt Change the default PDO error mode to exceptions 2020-05-04 22:51:47 +02:00
pdo_mysql_attr_autocommit.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_attr_case.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_attr_client_version.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_attr_connection_status.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_attr_driver_name.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_attr_errmode.phpt Validate string is numeric for integer PDO attribute value 2021-03-17 00:58:00 +00:00
pdo_mysql_attr_fetch_table_names.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_attr_init_command.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_attr_max_buffer_size.phpt Fix PDO test under libmysqlclient 2021-03-17 11:26:41 +01:00
pdo_mysql_attr_multi_statements.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_attr_oracle_nulls.phpt Validate string is numeric for integer PDO attribute value 2021-03-17 00:58:00 +00:00
pdo_mysql_attr_prefetch.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
pdo_mysql_attr_server_info.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
pdo_mysql_attr_server_version.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_attr_statement_class.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_begintransaction.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_bit.phpt Run tidy 2020-09-18 14:28:32 +02:00
pdo_mysql_class_constants.phpt Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
pdo_mysql_closecursor_error.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_commit.phpt Fix inconsistency in PDO transaction state 2020-10-26 17:01:18 +01:00
pdo_mysql_connect_attr.phpt fix the problem for connect_attr, set db condition, and add a new attribute _server_host 2019-08-20 13:31:58 +02:00
pdo_mysql_connect_charset.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_errorcode.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_errorinfo.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_exec_ddl.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_exec_load_data.phpt Fix test cases for MariaDB 2020-12-11 09:53:20 +01:00
pdo_mysql_exec_select.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_exec.phpt Change the default PDO error mode to exceptions 2020-05-04 22:51:47 +02:00
pdo_mysql_fetch_both.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_get_attribute.phpt Run tidy 2020-09-18 14:28:32 +02:00
pdo_mysql_interface.phpt Run tidy 2020-09-18 14:28:32 +02:00
pdo_mysql_inTransaction.phpt Fix inconsistency in PDO transaction state 2020-10-26 17:01:18 +01:00
pdo_mysql_last_insert_id.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_local_infile_default_off.phpt Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
pdo_mysql_local_infile_directory_allowed.phpt Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
pdo_mysql_local_infile_directory_denied.phpt Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
pdo_mysql_local_infile_overrides_local_infile_directory.phpt Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
pdo_mysql_local_infile_set_on.phpt PDO MySQL: Don't skip two LOCAL_INFILE tests with libmysqlclient 2020-12-11 14:48:43 +01:00
pdo_mysql_multi_stmt_nextrowset.phpt PDO MySQL: Fix nextRowset() on libmysqlclient with native PS 2020-12-11 14:48:44 +01:00
pdo_mysql_param_str_natl.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_pconnect.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_phpinfo.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_prepare_emulated_anonymous.phpt Fixed bug #72368 2020-12-10 16:53:08 +01:00
pdo_mysql_prepare_emulated_placeholder_everywhere.phpt Fixed bug #72368 2020-12-10 16:53:08 +01:00
pdo_mysql_prepare_emulated.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_prepare_match_against.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_prepare_native_clear_error.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_prepare_native_column.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_prepare_native_dup_named_placeholder.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_prepare_native_mixed_style.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_prepare_native_named_placeholder.phpt Fixed bug #72368 2020-12-10 16:53:08 +01:00
pdo_mysql_prepare_native_placeholder_everywhere.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_prepare_native.phpt Update PDO parameters for named arguments. 2020-09-28 23:02:05 +01:00
pdo_mysql_quote.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
pdo_mysql_rollback.phpt Fix inconsistency in PDO transaction state 2020-10-26 17:01:18 +01:00
pdo_mysql_stmt_bindcolumn.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_bindparam_types.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_bindparam.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_bindvalue.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_blobfromsteam.phpt Run tidy 2020-09-18 14:28:32 +02:00
pdo_mysql_stmt_blobs.phpt Rewrite PDO result binding 2020-12-22 15:56:34 +01:00
pdo_mysql_stmt_closecursor_empty.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_closecursor.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_columncount.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_errorcode.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_errorinfo.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_fetch_non_select.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_fetch_serialize_simple.phpt Partially deprecate Serializable 2021-04-28 16:55:14 +02:00
pdo_mysql_stmt_fetch_serialize.phpt Partially deprecate Serializable 2021-04-28 16:55:14 +02:00
pdo_mysql_stmt_fetchobject_ctor_args.phpt Fix the signature of PDOStatement::fetchObject() 2021-05-05 16:48:22 +02:00
pdo_mysql_stmt_fetchobject.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_stmt_getcolumnmeta.phpt Rewrite PDO result binding 2020-12-22 15:56:34 +01:00
pdo_mysql_stmt_multiquery.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_nextrowset.phpt PDO MySQL: Make sure nextRowset() works with partially consumed result 2020-12-09 14:46:49 +01:00
pdo_mysql_stmt_rowcount.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_stmt_unbuffered_2050.phpt Run tidy 2020-09-18 14:28:32 +02:00
pdo_mysql_stmt_variable_columncount.phpt Add CLEAN sections to mysqli and PDO mysql tests 2021-03-15 11:01:12 +01:00
pdo_mysql_subclass.phpt PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql_types_zerofill.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pdo_mysql_types.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pecl_bug_5200.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
pecl_bug_5780.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
pecl_bug_5802.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
README.md Change the default PDO error mode to exceptions 2020-05-04 22:51:47 +02:00
show_tables.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
skipif.inc Reindent phpt files 2020-02-03 22:52:20 +01:00
skipifinfilenotallowed.inc Fix #80329: Add option to specify LOAD DATA LOCAL white list folder 2021-02-23 09:30:46 +01:00
table.inc Reindent phpt files 2020-02-03 22:52:20 +01:00

The pdo_mysql extension tests

You must set the following environment variables to run the tests:

# DSN; For example: mysql:dbname=test;host=localhost;port=3306
PDO_MYSQL_TEST_DSN

# Database host
PDO_MYSQL_TEST_HOST

# Database (schema) name
PDO_MYSQL_TEST_DB

# Database server socket
PDO_MYSQL_TEST_SOCKET

# Storage engine to use
PDO_MYSQL_TEST_ENGINE

# Database user
PDO_MYSQL_TEST_USER

# Database user password
PDO_MYSQL_TEST_PASS

# Database charset
PDO_MYSQL_TEST_CHARSET

NOTE: if any of PDO_MYSQL_TEST_[HOST|DB|SOCKET|ENGINE|CHARSET] is part of PDO_MYSQL_TEST_DSN, the values must match. That is, for example, for PDO_MYSQL_TEST_DSN = mysql:dbname=test you MUST set PDO_MYSQL_TEST_DB=test.

MySQL User Permissions

The MySQL user used to run the tests must have full permissions on the test database, plus the following additional permissions: