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

From: Date: Sun, 15 Sep 2019 00:24:52 +0000
Subject: Doc #78540 [NEW]: DateInterval documentation has not been updated
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16943@lists.php.net to get a copy of this message
From: danielklein at airpost dot net Operating system: PHP version: 7.3.9 Package: Documentation problem Bug Type: Documentation Problem Bug description:DateInterval documentation has not been updated 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 bug report at https://bugs.php.net/bug.php?id=78540&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78540&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78540&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78540&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78540&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78540&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78540&r=support Expected behavior: https://bugs.php.net/fix.php?id=78540&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78540&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78540&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78540&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78540&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78540&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78540&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78540&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78540&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78540&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78540&r=mysqlcfg

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