PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Date and Time » Calendar » Bug #4694

Missing "optional" for parameter in Calendar::Month::Weekdays-Constructor

Details

Request #4694Missing "optional" for parameter in Calendar::Month::Weekdays-Constructor
Submitted2005-06-28 12:09 UTC
Fromjr at 0x42 dot com
Assignedquipo
StatusBogus
PackageCalendar
PHP VersionIrrelevant
OSOpenBSD 3.6
Roadmaps(Not assigned)

Comments

[2005-06-28 12:09 UTC] jr at 0x42 dot com

Description:
------------
The Calendar::Month::Weekdays-Constructor expects two Parameters, Year and Month. These Parameters are optional, but if you leave them out, PHP produces a warning.

Reproduce code:
---------------
Line 91 in Calendar/Month/Weekdays.php:
function Calendar_Month_Weekdays($y, $m, $firstDay=false)

should be fixed to smt. like this:

function Calendar_Month_Weekdays($y = NULL, $m = NULL, $firstDay=false)