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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC