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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: indeyets@php.net
New email:
PHP Version: OS:

 

 [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 14:01:32 2024 UTC