From: Sebastian Bergmann Date: Sun, 6 Jun 2004 06:40:19 +0000 (+0000) Subject: ZTS fixes. X-Git-Tag: php-5.0.0RC3~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14deb9dd0474f203b1e12185b8263e37960d8277;p=php ZTS fixes. --- 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;