<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/10946/bug">
    <title>PEAR Bug #10946</title>
    <link>http://pear.php.net/bugs/10946</link>
    <description>[Open] Date_Calc::dateFormat should default to DATE_CALC_FORMAT</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/10946"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/10946/2007-11-06+07%3A13%3A08#2007-11-06+07%3A13%3A08"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/10946">
      <title>doconnor</title>
      <link>http://pear.php.net/bugs/10946</link>
      <description><![CDATA[<pre>Date Feature/Change Request
Reported by doconnor
2007-05-06T09:27:50-00:00
PHP: 5.2.1 OS:  Package Version: 1.4.7

Description:
------------
If I do:

$formattedDate = Date_Calc::dateFormat(1, 1, 2007);

I get a blank string, which I would not expect, considering 99% of the other functions default to using DATE_CALC_FORMAT

examples:

function beginOfMonth($month = 0, $year = 0, $format = DATE_CALC_FORMAT)

function dateNow($format = DATE_CALC_FORMAT)

function daysToDate($days, $format = DATE_CALC_FORMAT)

function getCalendarYear($year = 0, $format = DATE_CALC_FORMAT)


Test script:
---------------
require_once 'Date/Calc.php';

var_dump(Date_Calc::dateFormat(1,1,2007));

Expected result:
----------------
20070101

Actual result:
--------------
empty string</pre>]]></description>
      <content:encoded><![CDATA[<pre>Date Feature/Change Request
Reported by doconnor
2007-05-06T09:27:50-00:00
PHP: 5.2.1 OS:  Package Version: 1.4.7

Description:
------------
If I do:

$formattedDate = Date_Calc::dateFormat(1, 1, 2007);

I get a blank string, which I would not expect, considering 99% of the other functions default to using DATE_CALC_FORMAT

examples:

function beginOfMonth($month = 0, $year = 0, $format = DATE_CALC_FORMAT)

function dateNow($format = DATE_CALC_FORMAT)

function daysToDate($days, $format = DATE_CALC_FORMAT)

function getCalendarYear($year = 0, $format = DATE_CALC_FORMAT)


Test script:
---------------
require_once 'Date/Calc.php';

var_dump(Date_Calc::dateFormat(1,1,2007));

Expected result:
----------------
20070101

Actual result:
--------------
empty string</pre>]]></content:encoded>
      <dc:date>2007-05-06T09:27:50-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/10946/2007-11-06+07%3A13%3A08#2007-11-06+07%3A13%3A08">
      <title>c01234 [2007-11-06 12:13]</title>
      <link>http://pear.php.net/bugs/10946#1194351188</link>
      <description><![CDATA[<pre>On the other hand, you do also get

Warning: Missing argument 4 for Date_Calc::dateFormat(), called in ... and defined in C:\dev\CVS\pear\Date\Date\Calc.php on line 137

Notice: Undefined variable: format in C:\dev\CVS\pear\Date\Date\Calc.php on line 147

so it's not a major problem</pre>]]></description>
      <content:encoded><![CDATA[<pre>On the other hand, you do also get

Warning: Missing argument 4 for Date_Calc::dateFormat(), called in ... and defined in C:\dev\CVS\pear\Date\Date\Calc.php on line 137

Notice: Undefined variable: format in C:\dev\CVS\pear\Date\Date\Calc.php on line 147

so it's not a major problem</pre>]]></content:encoded>
      <dc:date>2007-11-06T12:13:08-00:00</dc:date>
    </item>
</rdf:RDF>