cvs: pear /Date Date.php
| From: | Pierre-Alain Joye | Date: | Sun, 02 Oct 2005 13:41:11 +0000 |
| Subject: | cvs: pear /Date Date.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35215@lists.php.net to get a copy of this message | ||
pajoye Sun Oct 2 09:41:11 2005 EDT
Modified files:
/pear/Date Date.php
Log:
- #3846, getYear, getMonth returns integer
http://cvs.php.net/diff.php/pear/Date/Date.php?r1=1.29&r2=1.30&ty=u
Index: pear/Date/Date.php
diff -u pear/Date/Date.php:1.29 pear/Date/Date.php:1.30
--- pear/Date/Date.php:1.29 Wed Jan 5 15:20:56 2005
+++ pear/Date/Date.php Sun Oct 2 09:41:10 2005
@@ -23,7 +23,7 @@
* @author Pierre-Alain Joye <pajoye@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/2_02.txt PHP License
- * @version CVS: $Id: Date.php,v 1.29 2005/01/05 20:20:56 danielc Exp $
+ * @version CVS: $Id: Date.php,v 1.30 2005/10/02 13:41:10 pajoye Exp $
* @link http://pear.php.net/package/Date
*/
@@ -1057,7 +1057,7 @@
*/
function getYear()
{
- return $this->year;
+ return (int)$this->year;
}
/**
@@ -1070,7 +1070,7 @@
*/
function getMonth()
{
- return $this->month;
+ return (int)$this->month;
}
/**