mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
da011a312a
* allow the user to specify a folder where files that can be sent via LOAD DATA LOCAL can exist * add mysqli.local_infile_directory for mysqli (ignored if mysqli.allow_local_infile is enabled) * add PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY for pdo_mysql (ignored if PDO::MYSQL_ATTR_LOCAL_INFILE is enabled) * add related tests * fixes for building with libmysql 8.x * small improvement in existing tests * update php.ini-[development|production] files Closes GH-6448. Co-authored-by: Nikita Popov <nikic@php.net>
23 lines
834 B
JavaScript
23 lines
834 B
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("pdo-mysql", "MySQL support for PDO", "no");
|
|
|
|
if (PHP_PDO_MYSQL != "no") {
|
|
if (PHP_PDO_MYSQL == "yes" || PHP_PDO_MYSQL == "mysqlnd") {
|
|
AC_DEFINE('PDO_USE_MYSQLND', 1, 'Using MySQL native driver');
|
|
STDOUT.WriteLine("INFO: mysqlnd build");
|
|
EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c");
|
|
ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
|
|
} else {
|
|
if (CHECK_LIB("libmysql.lib", "pdo_mysql", PHP_PDO_MYSQL) &&
|
|
CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_PDO_MYSQL",
|
|
PHP_PDO_MYSQL + "\\include;" +
|
|
PHP_PHP_BUILD + "\\include\\mysql;" +
|
|
PHP_PDO_MYSQL)) {
|
|
EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
|
} else {
|
|
WARNING("pdo_mysql not enabled; libraries and headers not found");
|
|
}
|
|
}
|
|
}
|