CVS update: php3/functions
| From: | rasmus | Date: | Thu, 20 Aug 1998 16:52:25 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-353@lists.php.net to get a copy of this message | ||
Date: Thursday August 20, 1998 @ 12:52
Author: rasmus
Update of /repository/php3/functions
In directory asf:/export/home/rasmus/php3/functions
Modified Files:
imap.c
Log Message:
Fix argument handling in imap_reopen() - still doesn't work though
Index: php3/functions/imap.c
diff -c php3/functions/imap.c:1.13 php3/functions/imap.c:1.14
*** php3/functions/imap.c:1.13 Wed Aug 19 13:53:28 1998
--- php3/functions/imap.c Thu Aug 20 12:52:24 1998
***************
*** 352,358 ****
MAILSTREAM *imap_stream;
int ind, ind_type;
int myargc=ARG_COUNT(ht);
! if (getParameters(ht,myargc,&streamind, &mailbox,&user,&passwd,&options) ==
FAILURE) {
WRONG_PARAM_COUNT;
}
--- 352,358 ----
MAILSTREAM *imap_stream;
int ind, ind_type;
int myargc=ARG_COUNT(ht);
! if (myargc<4 || myargc>5 || getParameters(ht,myargc,&streamind,
&mailbox,&user,&passwd,&options) == FAILURE) {
WRONG_PARAM_COUNT;
}
***************
*** 367,377 ****
convert_to_string(mailbox);
convert_to_string(user);
convert_to_string(passwd);
! if(myargc == 4) convert_to_long(options);
strcpy(imap_user,user->value.str.val);
strcpy(imap_password,passwd->value.str.val);
! imap_stream = mail_open(imap_stream,mailbox->value.str.val,myargc == 4 ?
options->value.lval : NIL );
if (imap_stream == NIL){
php3_error(E_WARNING,"Couldn't re-open stream\n");
RETURN_FALSE;
--- 367,377 ----
convert_to_string(mailbox);
convert_to_string(user);
convert_to_string(passwd);
! if(myargc == 5) convert_to_long(options);
strcpy(imap_user,user->value.str.val);
strcpy(imap_password,passwd->value.str.val);
! imap_stream = mail_open(imap_stream,mailbox->value.str.val,myargc == 5 ?
options->value.lval : NIL );
if (imap_stream == NIL){
php3_error(E_WARNING,"Couldn't re-open stream\n");
RETURN_FALSE;
--
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