summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2004-06-06 06:40:19 +0000
committerSebastian Bergmann <sebastian@php.net>2004-06-06 06:40:19 +0000
commit14deb9dd0474f203b1e12185b8263e37960d8277 (patch)
tree4b88ee6843111faf6338596898b983cfbc046868
parentff5fca9aa0491043c05bb453d61f4da836717c84 (diff)
downloadphp-git-14deb9dd0474f203b1e12185b8263e37960d8277.tar.gz
ZTS fixes.
-rw-r--r--ext/mysqli/mysqli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 5882a02f71..e149f8af67 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -733,6 +733,8 @@ int php_local_infile_init(void **ptr, const char *filename, void *userdata)
int argc = 2;
int i, rc = 0;
+ TSRMLS_FETCH();
+
/* save pointer to MY_MYSQL structure (userdata) */
if (!(*ptr= data= ((mysqli_local_infile *)calloc(1, sizeof(mysqli_local_infile))))) {
return 1;
@@ -790,6 +792,8 @@ int php_local_infile_read(void *ptr, char *buf, uint buf_len)
int i;
long rc;
+ TSRMLS_FETCH();
+
data= (mysqli_local_infile *)ptr;
mysql = data->userdata;
@@ -861,6 +865,8 @@ void php_local_infile_end(void *ptr)
int argc = 1;
int i;
+ TSRMLS_FETCH();
+
data= (mysqli_local_infile *)ptr;
mysql = data->userdata;