diff options
| author | andrey <andrey@php.net> | 2012-05-03 12:55:03 +0200 |
|---|---|---|
| committer | andrey <andrey@php.net> | 2012-05-03 12:55:03 +0200 |
| commit | 522595086b8d654a2fd954977f7f443f2578de22 (patch) | |
| tree | 468fecc05cffc8da38328979ec9091f88ab142f0 /ext/mysqli/mysqli_nonapi.c | |
| parent | 57f7bd0d858542cfc23a35b9f619137489c873f9 (diff) | |
| download | php-git-522595086b8d654a2fd954977f7f443f2578de22.tar.gz | |
Remove support for local infile handler in mysqli from 5.5
This removes the following functions from the API:
mysqli_set_local_infile_default()
mysqli_set_local_infile_handler()
Using these functions is known to be lead to stability problems in
mysqli. It was only enabled when compiling against libmysql. mysqlnd
doesn't have this support for local infile. However, with mysqlnd it can
be emulated by using stream handlers like in:
$c->query("LOAD DATA LOCAL INFILE "http://example.com/import.csv" INTO ...")
All available protocols, as well as user implemented ones can be added.
Diffstat (limited to 'ext/mysqli/mysqli_nonapi.c')
| -rw-r--r-- | ext/mysqli/mysqli_nonapi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index 0cc1240208..fee65ee290 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -259,9 +259,6 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne #if !defined(MYSQLI_USE_MYSQLND) mysql->mysql->reconnect = MyG(reconnect); - - /* set our own local_infile handler */ - php_set_local_infile_handler_default(mysql); #endif mysql_options(mysql->mysql, MYSQL_OPT_LOCAL_INFILE, (char *)&MyG(allow_local_infile)); |
