|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-20 02:46 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
Description: ------------ Proto for mcal_fetch_event() says it accepts 2 or 3 parameters but code says it accepts 1, 2 or 3 parameters. I belive proto is right in this case and I am sending a patch for it. Patch proposal: RCS file: /repository/pecl/mcal/php_mcal.c,v retrieving revision 1.59 diff -u -r1.59 php_mcal.c --- mcal/php_mcal.c 16 Jun 2003 14:03:30 -0000 1.59 +++ mcal/php_mcal.c 18 Aug 2004 12:02:38 -0000 @@ -459,7 +459,7 @@ CALEVENT *myevent; int myargcount=ZEND_NUM_ARGS(); - if (myargcount < 1 || myargcount > 3 || zend_get_parameters_ex(myargcount, &streamind, &eventid, &options) == FAILURE) { + if (myargcount < 2 || myargcount > 3 || zend_get_parameters_ex(myargcount, &streamind, &eventid, &options) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(streamind);