CVS update: php3/functions
| From: | rasmus | Date: | Sun, 23 Aug 1998 14:20:04 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-528@lists.php.net to get a copy of this message | ||
Date: Sunday August 23, 1998 @ 10:20
Author: rasmus
Update of /repository/php3/functions
In directory asf:/export/home/rasmus/php3/functions
Modified Files:
basic_functions.c imap.c
Log Message:
Make third arg to imap_status() a required arg. This function is
meaningless without that third arg and will produce an IMAP protocol
error.
Index: php3/functions/basic_functions.c
diff -c php3/functions/basic_functions.c:1.210 php3/functions/basic_functions.c:1.211
*** php3/functions/basic_functions.c:1.210 Fri Aug 21 15:12:28 1998
--- php3/functions/basic_functions.c Sun Aug 23 10:20:02 1998
***************
*** 1587,1593 ****
}
! void php3_call_shutdown_functions()
{
if (user_shutdown_function_names) {
_php3_hash_apply(user_shutdown_function_names, (int(*)(void *))
user_shutdown_function_executor);
--- 1587,1593 ----
}
! void php3_call_shutdown_functions(void)
{
if (user_shutdown_function_names) {
_php3_hash_apply(user_shutdown_function_names, (int(*)(void *))
user_shutdown_function_executor);
Index: php3/functions/imap.c
diff -c php3/functions/imap.c:1.25 php3/functions/imap.c:1.26
*** php3/functions/imap.c:1.25 Sat Aug 22 08:00:31 1998
--- php3/functions/imap.c Sun Aug 23 10:20:03 1998
***************
*** 31,37 ****
| Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: imap.c,v 1.25 1998/08/22 12:00:31 rasmus Exp $ */
#define IMAP41
--- 31,37 ----
| Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: imap.c,v 1.26 1998/08/23 14:20:03 rasmus Exp $ */
#define IMAP41
***************
*** 1830,1842 ****
int ind, ind_type;
pils *imap_le_struct;
int myargc=ARG_COUNT(ht);
! if (myargc < 2 || myargc > 3 ||
getParameters(ht,myargc,&streamind,&mbx,&flags) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(streamind);
convert_to_string(mbx);
! if(myargc == 3) convert_to_long(flags);
ind = streamind->value.lval;
imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
--- 1830,1842 ----
int ind, ind_type;
pils *imap_le_struct;
int myargc=ARG_COUNT(ht);
! if (myargc != 3 || getParameters(ht,myargc,&streamind,&mbx,&flags) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(streamind);
convert_to_string(mbx);
! convert_to_long(flags);
ind = streamind->value.lval;
imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
***************
*** 1849,1855 ****
if(object_init(return_value) == FAILURE){
RETURN_FALSE;
}
! if(mail_status(imap_le_struct->imap_stream, mbx->value.str.val,myargc == 3 ?
flags->value.lval : NIL))
{
add_property_long(return_value,"flags",status_flags);
if(status_flags & SA_MESSAGES)
add_property_long(return_value,"messages",status_messages);
--- 1849,1855 ----
if(object_init(return_value) == FAILURE){
RETURN_FALSE;
}
! if(mail_status(imap_le_struct->imap_stream, mbx->value.str.val, flags->value.lval))
{
add_property_long(return_value,"flags",status_flags);
if(status_flags & SA_MESSAGES)
add_property_long(return_value,"messages",status_messages);
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net