From 1b480cd24b9a9852839e68bee3a64387eeda261a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 20 Aug 2004 00:46:49 +0000 Subject: [PATCH] MFH: Fixed bug #29753 (mcal_fetch_event() allows 2nd argument to be optional). --- NEWS | 2 ++ ext/mcal/php_mcal.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 2bbe062387..5f310a9cc6 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ PHP 4 NEWS ?? ??? 2004, Version 4.3.9 - Fixed bug with raw_post_data not getting set (Brian) - Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev) +- Fixed bug #29753 (mcal_fetch_event() allows 2nd argument to be optional). + (Ilia, Vrana) - Fixed bug #29727 (Added missing CURL authentication directives). (Ilia) - Fixed bug #29719 (fgetcsv() has problem parsing strings ending with escaped enclosures). (Ilia) diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c index 5154c6b0c3..9830acd3a1 100644 --- a/ext/mcal/php_mcal.c +++ b/ext/mcal/php_mcal.c @@ -459,7 +459,7 @@ PHP_FUNCTION(mcal_fetch_event) 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); -- 2.50.1