php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76981 Not all DateTime methods show up in TOC
Submitted: 2018-10-07 17:25 UTC Modified: 2018-10-09 18:13 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: teo8976 at gmail dot com Assigned:
Status: Verified Package: Doc Build problem
PHP Version: 7.3.0RC2 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-10-07 17:25 UTC] teo8976 at gmail dot com
Description:
------------
---
http://php.net/manual/en/datetime.construct.php
---


Test script:
---------------
Visit any of these:

 http://php.net/manual/en/datetime.setdate.php
 http://php.net/manual/en/datetime.construct.php
 http://php.net/manual/en/datetime.settimestamp.php

etc., that is, the documentation page for any of the methods of the class DateTime

Expected result:
----------------
While navigating in any of the abovementioned pages (about each of the class methods), all the class methods should be listed in the right column of the page.

Actual result:
--------------
Quite a few methods are missing:
 diff()
 format()
 getOffset()
 getTimestamp()
 getTimezone()

They can be found here:
http://php.net/manual/en/class.datetime.php
in the body of the page


Incidentally, the ones that are missing from the right column are listed out of alphabetical order at http://php.net/manual/en/class.datetime.php. I wonder if that's a coincidence.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-08 18:47 UTC] kalle@php.net
Thats an interesting one, as the methods in question is documented under DateTimeInterface, perhaps we should just move them around so they are documented at DateTime where they actually belong.
 [2018-10-09 09:41 UTC] derick@php.net
If you do that, you also need to add them to DateTimeImmutable.
 [2018-10-09 09:53 UTC] gabri dot ns at gmail dot com
it work in reverse. if you access page for the lost function, they are there, but not the other.
 [2018-10-09 12:11 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2018-10-09 12:11 UTC] cmb@php.net
This looks like a PhD issue.  SplTempFileObject shows the same
behavior: while the inherited methods are listed an the class
page[1], they are not shown in the menu of the __construct
page[2].

[1] <http://php.net/manual/en/class.spltempfileobject.php>
[2] <http://php.net/manual/en/spltempfileobject.construct.php>
 [2018-10-09 18:13 UTC] salathe@php.net
-Summary: Not all DateTime methods show up on the right column +Summary: Not all DateTime methods show up in TOC -Package: Website problem +Package: Doc Build problem
 [2018-10-09 18:13 UTC] salathe@php.net
Moved to PhD package.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC