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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 18:01:26 2025 UTC