helly Sat Jan 4 15:06:33 2003 EDT
Modified files:
/php4/ext/imap php_imap.c
Log:
Fix ZTS-ZE2 build
Index: php4/ext/imap/php_imap.c
diff -u php4/ext/imap/php_imap.c:1.149 php4/ext/imap/php_imap.c:1.150
--- php4/ext/imap/php_imap.c:1.149 Tue Dec 31 11:06:43 2002
+++ php4/ext/imap/php_imap.c Sat Jan 4 15:06:32 2003
@@ -26,7 +26,7 @@
| PHP 4.0 updates: Zeev Suraski <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_imap.c,v 1.149 2002/12/31 16:06:43 sebastian Exp $ */
+/* $Id: php_imap.c,v 1.150 2003/01/04 20:06:32 helly Exp $ */
#define IMAP41
@@ -202,7 +202,7 @@
/* {{{ add_assoc_object
*/
-static int add_assoc_object(zval *arg, char *key, zval *tmp)
+static int add_assoc_object(zval *arg, char *key, zval *tmp TSRMLS_DC)
{
HashTable *symtable;
@@ -217,7 +217,7 @@
/* {{{ add_next_index_object
*/
-static inline int add_next_index_object(zval *arg, zval *tmp)
+static inline int add_next_index_object(zval *arg, zval *tmp TSRMLS_DC)
{
HashTable *symtable;
@@ -1305,7 +1305,7 @@
#else
add_property_string(mboxob, "delimiter", cur->delimiter, 1);
#endif
- add_next_index_object(return_value, mboxob);
+ add_next_index_object(return_value, mboxob TSRMLS_CC);
cur=cur->next;
}
mail_free_foblist(&IMAPG(imap_folder_objects),
&IMAPG(imap_folder_objects_tail));
@@ -1625,7 +1625,7 @@
#else
add_property_string(mboxob, "delimiter", cur->delimiter, 1);
#endif
- add_next_index_object(return_value, mboxob);
+ add_next_index_object(return_value, mboxob TSRMLS_CC);
cur=cur->next;
}
mail_free_foblist (&IMAPG(imap_sfolder_objects),
&IMAPG(imap_sfolder_objects_tail));
@@ -1992,7 +1992,7 @@
if (addresstmp->adl) {
add_property_string(tovals, "adl", addresstmp->adl, 1);
}
- add_next_index_object(return_value, tovals);
+ add_next_index_object(return_value, tovals TSRMLS_CC);
} while ((addresstmp = addresstmp->next));
}
/* }}} */
@@ -2625,9 +2625,9 @@
object_init(dparam);
add_property_string(dparam, "attribute", dpar->attribute, 1);
add_property_string(dparam, "value", dpar->value, 1);
- add_next_index_object(dparametres, dparam);
+ add_next_index_object(dparametres, dparam TSRMLS_CC);
} while ((dpar = dpar->next));
- add_assoc_object(return_value, "dparameters", dparametres);
+ add_assoc_object(return_value, "dparameters", dparametres TSRMLS_CC);
} else {
add_property_long(return_value, "ifdparameters", 0);
}
@@ -2648,14 +2648,14 @@
add_property_string(param, "value", par->value, 1);
}
- add_next_index_object(parametres, param);
+ add_next_index_object(parametres, param TSRMLS_CC);
} while ((par = par->next));
} else {
MAKE_STD_ZVAL(parametres);
object_init(parametres);
add_property_long(return_value, "ifparameters", 0);
}
- add_assoc_object(return_value, "parameters", parametres);
+ add_assoc_object(return_value, "parameters", parametres TSRMLS_CC);
}
/* }}} */
@@ -2735,7 +2735,7 @@
add_property_long(myoverview, "deleted", elt->deleted);
add_property_long(myoverview, "seen", elt->seen);
add_property_long(myoverview, "draft", elt->draft);
- add_next_index_object(return_value, myoverview);
+ add_next_index_object(return_value, myoverview
+TSRMLS_CC);
}
}
}
@@ -3635,7 +3635,7 @@
if (addresstmp->adl) add_property_string(tmpvals, "adl",
addresstmp->adl, 1);
if (addresstmp->mailbox) add_property_string(tmpvals, "mailbox",
addresstmp->mailbox, 1);
if (addresstmp->host) add_property_string(tmpvals, "host",
addresstmp->host, 1);
- add_next_index_object(paddress, tmpvals);
+ add_next_index_object(paddress, tmpvals TSRMLS_CC);
} while ((addresstmp = addresstmp->next));
}
/* }}} */
@@ -3668,7 +3668,7 @@
add_property_string(myzvalue, "toaddress", fulladdress, 1);
free(fulladdress);
}
- add_assoc_object(myzvalue, "to", paddress);
+ add_assoc_object(myzvalue, "to", paddress TSRMLS_CC);
}
if (en->from) {
@@ -3679,7 +3679,7 @@
add_property_string(myzvalue, "fromaddress", fulladdress, 1);
free(fulladdress);
}
- add_assoc_object(myzvalue, "from", paddress);
+ add_assoc_object(myzvalue, "from", paddress TSRMLS_CC);
}
if (en->cc) {
@@ -3690,7 +3690,7 @@
add_property_string(myzvalue, "ccaddress", fulladdress, 1);
free(fulladdress);
}
- add_assoc_object(myzvalue, "cc", paddress);
+ add_assoc_object(myzvalue, "cc", paddress TSRMLS_CC);
}
if (en->bcc) {
@@ -3701,7 +3701,7 @@
add_property_string(myzvalue, "bccaddress", fulladdress, 1);
free(fulladdress);
}
- add_assoc_object(myzvalue, "bcc", paddress);
+ add_assoc_object(myzvalue, "bcc", paddress TSRMLS_CC);
}
if (en->reply_to) {
@@ -3712,7 +3712,7 @@
add_property_string(myzvalue, "reply_toaddress", fulladdress,
1);
free(fulladdress);
}
- add_assoc_object(myzvalue, "reply_to", paddress);
+ add_assoc_object(myzvalue, "reply_to", paddress TSRMLS_CC);
}
if (en->sender) {
@@ -3723,7 +3723,7 @@
add_property_string(myzvalue, "senderaddress", fulladdress, 1);
free(fulladdress);
}
- add_assoc_object(myzvalue, "sender", paddress);
+ add_assoc_object(myzvalue, "sender", paddress TSRMLS_CC);
}
if (en->return_path) {
@@ -3734,7 +3734,7 @@
add_property_string(myzvalue, "return_pathaddress",
fulladdress, 1);
free(fulladdress);
}
- add_assoc_object(myzvalue, "return_path", paddress);
+ add_assoc_object(myzvalue, "return_path", paddress TSRMLS_CC);
}
}
/* }}} */
@@ -3802,9 +3802,9 @@
object_init(dparam);
add_property_string(dparam, "attribute", dpar->attribute, 1);
add_property_string(dparam, "value", dpar->value, 1);
- add_next_index_object(dparametres, dparam);
+ add_next_index_object(dparametres, dparam TSRMLS_CC);
} while ((dpar = dpar->next));
- add_assoc_object(arg, "dparameters", dparametres);
+ add_assoc_object(arg, "dparameters", dparametres TSRMLS_CC);
} else {
add_property_long(arg, "ifdparameters", 0);
}
@@ -3825,14 +3825,14 @@
add_property_string(param, "value", par->value, 1);
}
- add_next_index_object(parametres, param);
+ add_next_index_object(parametres, param TSRMLS_CC);
} while ((par = par->next));
} else {
MAKE_STD_ZVAL(parametres);
object_init(parametres);
add_property_long(arg, "ifparameters", 0);
}
- add_assoc_object(arg, "parameters", parametres);
+ add_assoc_object(arg, "parameters", parametres TSRMLS_CC);
/* multipart message ? */
if (body->type == TYPEMULTIPART) {
@@ -3842,9 +3842,9 @@
MAKE_STD_ZVAL(param);
object_init(param);
_php_imap_add_body(param, &part->body TSRMLS_CC);
- add_next_index_object(parametres, param);
+ add_next_index_object(parametres, param TSRMLS_CC);
}
- add_assoc_object(arg, "parts", parametres);
+ add_assoc_object(arg, "parts", parametres TSRMLS_CC);
}
/* encapsulated message ? */
@@ -3855,8 +3855,8 @@
MAKE_STD_ZVAL(param);
object_init(param);
_php_imap_add_body(param, body TSRMLS_CC);
- add_next_index_object(parametres, param);
- add_assoc_object(arg, "parts", parametres);
+ add_next_index_object(parametres, param TSRMLS_CC);
+ add_assoc_object(arg, "parts", parametres TSRMLS_CC);
}
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php