#48088 [Opn->Csd]: Wrong ARG_INFO for OO-API of DateTime
| From: | kalle@php.net | Date: | Mon, 27 Apr 2009 14:22:49 +0000 |
| Subject: | #48088 [Opn->Csd]: Wrong ARG_INFO for OO-API of DateTime | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136368@lists.php.net to get a copy of this message | ||
ID: 48088
Updated by: kalle@php.net
Reported By: indeyets@php.net
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: any
PHP Version: 5.3.0RC1
-Assigned To:
+Assigned To: kalle
New Comment:
I could only see setISODate as having it wrongly, fixed in CVS
Previous Comments:
------------------------------------------------------------------------
[2009-04-27 12:49:40] indeyets@php.net
Description:
------------
ARG_INFO of several methods of DateTime class have $object as the first
parameter, which, actually, is not needed in object-oriented API.
Reproduce code:
---------------
php --rc DateTime
Expected result:
----------------
Method [ <internal:date> public method setISODate ] {
- Parameters [4] {
Parameter #0 [ <required> $year ]
Parameter #1 [ <required> $week ]
Parameter #2 [ <optional> $day ]
}
}
Actual result:
--------------
Method [ <internal:date> public method setISODate ] {
- Parameters [4] {
Parameter #0 [ <required> $object ]
Parameter #1 [ <required> $year ]
Parameter #2 [ <required> $week ]
Parameter #3 [ <optional> $day ]
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48088&edit=1