PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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)