php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48088 Wrong ARG_INFO for OO-API of DateTime
Submitted: 2009-04-27 12:49 UTC Modified: 2009-04-27 15:47 UTC
From: indeyets@php.net Assigned: kalle (profile)
Status: Closed Package: Date/time related
PHP Version: 5.3.0RC1 OS: *
Private report: No CVE-ID: None
 [2009-04-27 12:49 UTC] 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 ]
      }
    }
?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-27 14:22 UTC] kalle@php.net
I could only see setISODate as having it wrongly, fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 12:01:31 2024 UTC