php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3664 Wrong parameters count in imap_delete
Submitted: 2000-02-29 08:57 UTC Modified: 2000-02-29 09:20 UTC
From: denis at edinet dot it Assigned:
Status: Closed Package: IMAP related
PHP Version: 3.0.15 OS: Linux
Private report: No CVE-ID: None
 [2000-02-29 08:57 UTC] denis at edinet dot it
$mbox = imap_open("{100.100.100.100}143","INBOX");

//NB msg 5 exist
imap_delete($mbox,5);

//php quits with a Wrong Parameter count for imap_delete

I looked at the sources (imap.c) and the parameter check for the imap_delete is not equal to that in 3.0.14 .

Is there any problem copying the old parameter check routine?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-29 09:20 UTC] hholzgra at cvs dot php dot net
has been fixed in CVS after 3.0.15
you may want to check out the latest CVS
or apply theese changes to imap_delete

-       if ( myargc < 3 || myargc > 4 || ...
+       if ( myargc < 2 || myargc > 3 || ...
 
-       mail_setflag_full(...,myargc == 4 ? flags->value.lval : NIL);
+       mail_setflag_full(...,myargc == 3 ? flags->value.lval : NIL);


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 21:03:34 2021 UTC