Skip to content

Mysql local infile dir #6715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed

Mysql local infile dir #6715

wants to merge 10 commits into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Feb 22, 2021

No description provided.

marinesovitch and others added 6 commits February 22, 2021 11:03
 * 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 phpGH-6448.
If mysqlnd is used, we'll later check open_basedir when opening
the file. However, if libmysqlclient is used, then we should check
the directory in advance. For consistency of behavior, perform
the open_basedir check unconditionally.
MYSQL_OPT_LOAD_DATA_LOCAL_DIR should already be supported in
8.0.21 rather than 8.0.22.
@nikic
Copy link
Member Author

nikic commented Feb 23, 2021

Merged as da011a3.

@nikic nikic closed this Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants