diff options
| author | Chuck Hagenbuch <chagenbu@php.net> | 2000-02-18 01:56:01 +0000 |
|---|---|---|
| committer | Chuck Hagenbuch <chagenbu@php.net> | 2000-02-18 01:56:01 +0000 |
| commit | f27920214c102e3292f1d1dc42b9487b907c6190 (patch) | |
| tree | 7795cbb61269d69bcd820170c748f4dabe045b58 /ext | |
| parent | ae22fe4c52d57db1c6451d0525b8bcd47c28b560 (diff) | |
| download | php-git-f27920214c102e3292f1d1dc42b9487b907c6190.tar.gz | |
fixing imap_delete. All of the argcount checks were against one integer too
high.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/imap/imap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/imap/imap.c b/ext/imap/imap.c index ac60283d93..d3edfebd74 100644 --- a/ext/imap/imap.c +++ b/ext/imap/imap.c @@ -1544,7 +1544,7 @@ PHP_FUNCTION(imap_delete) 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 @@ PHP_FUNCTION(imap_delete) 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; } /* }}} */ |
