cvs: /php4/ext/imap imap.c
| From: | Charles Hagenbuch | Date: | Fri, 18 Feb 2000 01:56:32 +0000 |
| Subject: | cvs: /php4/ext/imap imap.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10427@lists.php.net to get a copy of this message | ||
chagenbu Thu Feb 17 17:56:32 2000 EDT
Modified files:
/php4/ext/imap imap.c
Log:
fixing imap_delete. All of the argcount checks were against one integer too
high.
Index: php4/ext/imap/imap.c
diff -u php4/ext/imap/imap.c:1.38 php4/ext/imap/imap.c:1.39
--- php4/ext/imap/imap.c:1.38 Thu Feb 17 17:52:10 2000
+++ php4/ext/imap/imap.c Thu Feb 17 17:56:01 2000
@@ -21,7 +21,7 @@
| PHP 4.0 updates: Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: imap.c,v 1.38 2000/02/18 01:52:10 zeev Exp $ */
+/* $Id: imap.c,v 1.39 2000/02/18 01:56:01 chagenbu Exp $ */
#define IMAP41
@@ -1544,7 +1544,7 @@
pils *imap_le_struct;
int myargc=ARG_COUNT(ht);
- if ( myargc < 3 || myargc > 4 ||
getParameters(ht,myargc,&streamind,&sequence,&flags) == FAILURE) {
+ if (myargc < 2 || myargc > 3 ||
getParameters(ht,myargc,&streamind,&sequence,&flags) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -1559,7 +1559,7 @@
RETURN_FALSE;
}
- mail_setflag_full(imap_le_struct->imap_stream,sequence->value.str.val,"\\DELETED",myargc
== 4 ? flags->value.lval : NIL);
+ mail_setflag_full(imap_le_struct->imap_stream,sequence->value.str.val,
"\\DELETED", myargc == 3 ? flags->value.lval : NIL);
RETVAL_TRUE;
}
/* }}} */