doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

See also <function> tag generates incorrect titleabbrv content

Open HatunaPatata opened this issue 10 months ago • 3 comments

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()

HatunaPatata avatar Apr 27 '24 14:04 HatunaPatata

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

damianwadley avatar Apr 27 '24 16:04 damianwadley

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?

Girgias avatar Apr 28 '24 02:04 Girgias

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.

haszi avatar Apr 28 '24 10:04 haszi