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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: denis at edinet dot it
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 11:01:31 2025 UTC