Doc #68940 [Dup->Csd]: class.dateinterval : new PHP 5.5 properties are not documented

[email protected] Fri, 20 May 2022 14:06:28 +0000
Newsgroups php.doc.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=68940&edit=1

 ID:                 68940
 Updated by:         [email protected]
 Reported by:        nh75020 at laposte dot net
 Summary:            class.dateinterval : new PHP 5.5 properties are not
                     documented
-Status:             Duplicate
+Status:             Closed
 Type:               Documentation Problem
 Package:            Date/time related
 Operating System:   win 7
 PHP Version:        5.5.21
-Assigned To:        
+Assigned To:        derick
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2020-02-16 22:48:36] [email protected]

This is been discussed via Request #74054.

------------------------------------------------------------------------
[2015-01-28 22:12:30] 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
)



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68940&edit=1