summaryrefslogtreecommitdiff
path: root/ext/imap
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-31 05:44:11 +0000
committerZeev Suraski <zeev@php.net>2001-07-31 05:44:11 +0000
commitaa1772ca7263173ee47af0d83fea866f194757ba (patch)
treea8ea8932a07875a43423a8ffcd0100eab0c0f8a7 /ext/imap
parent57507b4ea6bb2a38578444ca8359806f241fa8f5 (diff)
downloadphp-git-aa1772ca7263173ee47af0d83fea866f194757ba.tar.gz
More TSRMLS_FETCH annihilation
Diffstat (limited to 'ext/imap')
-rw-r--r--ext/imap/php_imap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index e02d5d2274..0095e0348c 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -75,11 +75,11 @@ void *fs_get(size_t size);
int imap_mail(char *to, char *subject, char *message, char *headers, char *cc, char *bcc, char *rpath);
-void mail_close_it (zend_rsrc_list_entry *rsrc);
+void mail_close_it(zend_rsrc_list_entry *rsrc TSRMLS_DC);
#ifdef OP_RELOGIN
/* AJS: close persistent connection */
-void mail_userlogout_it(zend_rsrc_list_entry *rsrc);
-void mail_nuke_chain(zend_rsrc_list_entry *rsrc);
+void mail_userlogout_it(zend_rsrc_list_entry *rsrc TSRMLS_DC);
+void mail_nuke_chain(zend_rsrc_list_entry *rsrc TSRMLS_DC);
#endif
/* {{{ imap_functions[]
@@ -186,10 +186,9 @@ static int le_pimapchain;
#endif
-void mail_close_it(zend_rsrc_list_entry *rsrc)
+void mail_close_it(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
pils *imap_le_struct = (pils *)rsrc->ptr;
- TSRMLS_FETCH();
mail_close_full(imap_le_struct->imap_stream, imap_le_struct->flags);
@@ -207,9 +206,10 @@ void mail_close_it(zend_rsrc_list_entry *rsrc)
#ifdef OP_RELOGIN
/* AJS: stream close functions for persistent connections */
-void mail_userlogout_it(zend_rsrc_list_entry *rsrc)
+void mail_userlogout_it(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
pils *imap_le_struct = (pils *)rsrc->ptr;
+
/* Close this user's session, putting the stream back
* into AUTHENTICATE state. (Note that IMAP does not
* support this behavior... yet)
@@ -218,7 +218,7 @@ void mail_userlogout_it(zend_rsrc_list_entry *rsrc)
mail_close_full(imap_le_struct->imap_stream, imap_le_struct->flags | CL_HALF);
}
-void mail_nuke_chain(zend_rsrc_list_entry *rsrc)
+void mail_nuke_chain(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
pils **headp = (pils **)rsrc->ptr;
pils *node, *next;