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 » Date » Bug #1928

No show

Details

Submitted2004-07-20 16:35 UTC
Fromtoto at darkside dot tomsk dot ru
Assignedpajoye
StatusBogus
PackageDate
PHP Version4.3.7
OSLinux RH90
Roadmaps(Not assigned)

Comments

[2004-07-20 16:35 UTC] toto at darkside dot tomsk dot ru

Description:
------------
PHP 4.3.8
Date-1.4.3 or|and Date-1.4.2
Date::getYear() don't show anything

Reproduce code:
---------------
<?php
require_once('Date.php');
echo Date::getYear()."<br>";
echo Date::getDaysInMonth()."<br>";

?>

Expected result:
----------------
<br>31<br>

Actual result:
--------------
2004<br>31<br>

[2004-07-20 17:05 UTC] pierre at dotgeek dot org

Thank you for taking the time to write to us, but this is not
a bug.

Returns the Year|Days from the current Date _object_. That means it does not work static calls.

--Pierre