php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77435 Documentation linking issue for hrtime()
Submitted: 2019-01-09 18:22 UTC Modified: 2019-01-09 18:48 UTC
From: love at sickpeople dot se Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2019-01-09 18:22 UTC] love at sickpeople dot se
Description:
------------
The hrtime() function is currently *hard to find*, some linking is missing I think. You can search for it on the page search box and find it easily, but

 1) http://php.net/hrtime leads to the "book hrtime" page. I somewhat expect it to lead to the function instead (maybe just because I more often search for functions via the URL)

 2) hrtime() is not mentioned on the "book hrtime" page

 3) hrtime() is sorted under misc functions. Maybe it should be moved to "book hrtime". On the other hand, sleep(), usleep() et al are sorted under misc functions. Maybe it can be on both?



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-09 18:34 UTC] requinix@php.net
1. The short php.net/NAME convenience URL prioritizes "book" pages over "function" pages. The same thing happens with php.net/hash and I think another one. If you're typing the short URL yourself you can use the "function." prefix like php.net/function.hrtime.

2/3. php.net/book.hrtime is for the HRTime PECL extension. The hrtime function is not part of it.
 [2019-01-09 18:38 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2019-01-09 18:38 UTC] cmb@php.net
> php.net/book.hrtime is for the HRTime PECL extension. The hrtime
> function is not part of it.

Still it makes sense to cross-reference the extension and the
function.
 [2019-01-09 18:47 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346582
Log: Fix #77435: Documentation linking issue for hrtime()
 [2019-01-09 18:48 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2019-01-09 18:48 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=cf1cd131fce53d6b36fa564936f3d2b1ce1a89ac
Log: Fix #77435: Documentation linking issue for hrtime()
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 19:00:01 2026 UTC