Doc #78540 [PATCH]: DateInterval documentation has not been updated

From: Date: Sun, 16 Feb 2020 17:06:57 +0000
Subject: Doc #78540 [PATCH]: DateInterval documentation has not been updated
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17312@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78540&edit=1 ID: 78540 Patch added by: carusogabriel@php.net Reported by: danielklein at airpost dot net Summary: DateInterval documentation has not been updated Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: 7.3.9 Block user comment: N Private report: N New Comment: The following pull request has been associated: Patch Name: Fix #78540: Add missing DateInterval properties On GitHub: https://github.com/php/doc-en/pull/44 Patch: https://github.com/php/doc-en/pull/44.patch Previous Comments: ------------------------------------------------------------------------ [2019-09-15 06:11:28] kalle@php.net Related To: Bug #78541 ------------------------------------------------------------------------ [2019-09-15 00:24:52] danielklein at airpost dot net Description: ------------ --- From manual page: https://php.net/dateinterval.construct --- The "Example #1 DateInterval example" code now produces different output to that shown, since new properties have been added to the class. It doesn't state how to set any of these new properties with the constructor, in particular the microseconds property. Test script: --------------- <?php $interval = new DateInterval('P2Y4DT6H8M'); var_dump($interval); ?> Actual result: -------------- class DateInterval#1 (16) { public $y => int(2) public $m => int(0) public $d => int(4) public $h => int(6) public $i => int(8) public $s => int(0) public $f => double(0) public $weekday => int(0) public $weekday_behavior => int(0) public $first_last_day_of => int(0) public $invert => int(0) public $days => bool(false) public $special_type => int(0) public $special_amount => int(0) public $have_weekday_relative => int(0) public $have_special_relative => int(0) } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78540&edit=1

« previous php.doc.bugs (#17312) next »