summaryrefslogtreecommitdiff
path: root/ext/mysqli/php_mysqli_structs.h
diff options
context:
space:
mode:
authorandrey <andrey@php.net>2012-05-03 12:55:03 +0200
committerandrey <andrey@php.net>2012-05-03 12:55:03 +0200
commit522595086b8d654a2fd954977f7f443f2578de22 (patch)
tree468fecc05cffc8da38328979ec9091f88ab142f0 /ext/mysqli/php_mysqli_structs.h
parent57f7bd0d858542cfc23a35b9f619137489c873f9 (diff)
downloadphp-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/php_mysqli_structs.h')
-rw-r--r--ext/mysqli/php_mysqli_structs.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/mysqli/php_mysqli_structs.h b/ext/mysqli/php_mysqli_structs.h
index 32e3e1e8a5..1d363ab245 100644
--- a/ext/mysqli/php_mysqli_structs.h
+++ b/ext/mysqli/php_mysqli_structs.h
@@ -158,12 +158,6 @@ typedef struct _mysqli_property_entry {
int (*w_func)(mysqli_object *obj, zval *value TSRMLS_DC);
} mysqli_property_entry;
-#if !defined(MYSQLI_USE_MYSQLND)
-typedef struct {
- char error_msg[LOCAL_INFILE_ERROR_LEN];
- void *userdata;
-} mysqli_local_infile;
-#endif
typedef struct {
zend_ptr_stack free_links;