diff options
| author | Xinchen Hui <laruence@gmail.com> | 2015-11-16 16:58:19 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2015-11-16 16:59:55 +0800 |
| commit | be6fd4ba89e151b68ddd68e53d6a403c2e8eb862 (patch) | |
| tree | f248aa3560451beee5b41cd0c68cdc2787693fb6 /ext/mysqli/mysqli_nonapi.c | |
| parent | e5abc53701ba5a9b58dfaba3b59881c9c410a8e7 (diff) | |
| download | php-git-be6fd4ba89e151b68ddd68e53d6a403c2e8eb862.tar.gz | |
Fixed bug #68077 (LOAD DATA LOCAL INFILE / open_basedir restriction)
Actually, this only be fixed if php uses mysqlnd
Diffstat (limited to 'ext/mysqli/mysqli_nonapi.c')
| -rw-r--r-- | ext/mysqli/mysqli_nonapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index 2ee6c9eee6..859d1222fe 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -120,9 +120,11 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne flags |= CLIENT_MULTI_RESULTS; /* needed for mysql_multi_query() */ /* remove some insecure options */ flags &= ~CLIENT_MULTI_STATEMENTS; /* don't allow multi_queries via connect parameter */ +#if !defined(MYSQLI_USE_MYSQLND) if (PG(open_basedir) && PG(open_basedir)[0] != '\0') { flags &= ~CLIENT_LOCAL_FILES; } +#endif } if (!socket_len || !socket) { |
