CVS update: php3/functions
| From: | rasmus | Date: | Thu, 20 Aug 1998 19:15:46 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-356@lists.php.net to get a copy of this message | ||
Date: Thursday August 20, 1998 @ 15:15
Author: rasmus
Update of /repository/php3/functions
In directory asf:/export/home/rasmus/php3/functions
Modified Files:
imap.c
Log Message:
Fix imap_reopen to only take 2 arguments with an optional 3rd flags arg
Index: php3/functions/imap.c
diff -c php3/functions/imap.c:1.14 php3/functions/imap.c:1.15
*** php3/functions/imap.c:1.14 Thu Aug 20 12:52:24 1998
--- php3/functions/imap.c Thu Aug 20 15:15:45 1998
***************
*** 346,358 ****
{
pval *streamind;
pval *mailbox;
- pval *user;
- pval *passwd;
pval *options;
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;
}
--- 346,356 ----
{
pval *streamind;
pval *mailbox;
pval *options;
MAILSTREAM *imap_stream;
int ind, ind_type;
int myargc=ARG_COUNT(ht);
! if (myargc<2 || myargc>3 || getParameters(ht,myargc,&streamind, &mailbox,
&options) == FAILURE) {
WRONG_PARAM_COUNT;
}
***************
*** 365,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;
--- 363,371 ----
}
convert_to_string(mailbox);
! if(myargc == 3) convert_to_long(options);
! imap_stream = mail_open(imap_stream,mailbox->value.str.val,myargc == 3 ?
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