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 #8192

Calendar_Week and isEmpty

Details

Submitted2006-07-12 10:18 UTC
Fromkodaira313a at yahoo dot co dot jp
Assignedquipo
StatusBogus
PackageCalendar
PHP Version4.3.11
OSLinux
Roadmaps(Not assigned)

Comments

[2006-07-12 10:18 UTC] kodaira313a at yahoo dot co dot jp

Description:
------------
In the Calendar_Week class, the isEmpty method doesn't become effective.
Please look at the simple Samplcord of the following.
My use might be wrong.

Test script:
---------------
<?php
require_once 'Calendar/Week.php';
$Week = new Calendar_Week(2006, 7, 1);
$Week->build();
while ( $Day = $Week->fetch() )
{
if ( $Day->isEmpty() )
{
echo '-,';
} else {
echo '$Day->thisDay().',';
}
}
?>

Expected result:
----------------
-,-,-,-,-,1,2,

Actual result:
--------------
26,27,28,29,30,1,2,