php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68940 class.dateinterval : new PHP 5.5 properties are not documented
Submitted: 2015-01-28 22:12 UTC Modified: 2022-05-20 14:06 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: nh75020 at laposte dot net Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 5.5.21 OS: win 7
Private report: No CVE-ID: None
 [2015-01-28 22:12 UTC] nh75020 at laposte dot net
Description:
------------
---
From manual page: http://www.php.net/class.dateinterval
---

starting 5.5, the object has new properties that are not documented. The last update for doc standpoint is (PHP 5 >= 5.3.0)

DateInterval Object
(
/*  docummented  */
    [y] => 0
    [m] => 0
    [d] => 4
    [h] => 10
    [i] => 8
    [s] => 35
    [invert] => 0
    [days] => 4

/*  new in PHP 5.5, not documented */
    [weekday] => 0
    [weekday_behavior] => 0
    [first_last_day_of] => 0
    [special_type] => 0
    [special_amount] => 0
    [have_weekday_relative] => 0
    [have_special_relative] => 0
)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:50 UTC] cmb@php.net
-Package: Documentation problem +Package: Date/time related
 [2020-02-16 22:48 UTC] carusogabriel@php.net
-Status: Open +Status: Duplicate
 [2020-02-16 22:48 UTC] carusogabriel@php.net
This is been discussed via Request #74054.
 [2022-05-20 14:06 UTC] derick@php.net
-Status: Duplicate +Status: Closed -Assigned To: +Assigned To: derick
 [2022-05-20 14:06 UTC] derick@php.net
These internal properties should not be documented, as they are an implementation detail. The ones that should be documented, are now, including 'f': https://www.php.net/class.dateinterval
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC