doc-en
doc-en copied to clipboard
See also <function> tag generates incorrect titleabbrv content
From manual page: https://php.net/function.finfo-buffer
In the "See Also" section, there is this line:
finfo_file() - Alias of finfo_file()
I believe it should be:
finfo_file() - Alias of finfo::file()
Actually it would be the opposite: finfo::file
is the alias, finfo_file
is the real function.
https://www.php.net/manual/en/finfo.file.php
This seems to be a bug in resolving the <function>
tag, possibly because the method is actually on the same page and overwrites the PhD index, @haszi do you have an idea what might cause this?
When PhD
is retrieving the indexes from the database, all function/method names are stored in memory with ::
and _
replaced by -
. That is not an issue for most functions and methods but it is for finfo_buffer
/finfo::buffer
and finfo_file
/finfo::file
, and every other function/method where classname::methodname
is the same as classname_methodname
(the latter of which is also the function's name). Because the finfo::buffer
/finfo::file
methods are declared after the function, all autogenerated function links and descriptions get overwritten.
I'll try to fix this in the next few days.