DevHeads.net

Bug #76447 [NEW]: no autocomplete results for function names that do exist

Operating system:
PHP version: Irrelevant
Package: Website problem
Bug Type: Bug
Bug description:no autocomplete results for function names that do exist

Description:

Expected result:
All of these functions exist. They are aliases of
MySQLi::real_escape_string() etc, but they do exist in the functional
form. Also, if you do type the name blindly and correctly till the end,
e.g. you type "mysqli_real_escape_string", and you hit Enter, the search
engine does find the result and directs you to the relevant page:
<a href="http://php.net/manual/en/mysqli.real-escape-string.php" title="http://php.net/manual/en/mysqli.real-escape-string.php">http://php.net/manual/en/mysqli.real-escape-string.php</a>

Hence, the autocomplete should suggest those results.

Actual result:

Comments

Bug #76447 [Opn]: no autocomplete results for fu

By =?utf-8?q?Phili... at 06/12/2018 - 15:30

Edit report at <a href="https://bugs.php.net/bug.php?id=76447&amp;edit=1" title="https://bugs.php.net/bug.php?id=76447&amp;edit=1">https://bugs.php.net/bug.php?id=76447&amp;edit=1</a>

ID: 76447
Updated by: <a href="mailto: ... at php dot net"> ... at php dot net</a>
Reported by: teo8976 at gmail dot com
Summary: no autocomplete results for function names that do
exist
Status: Open
Type: Bug
Package: Website problem
PHP Version: Irrelevant
Block user comment: N
Private report: N

New Comment:

Related To: Bug #49956
Related To: Bug #73752

The problem applies to all OOP+Procedural documentation pages where methods and functions are documented on a single page. The tool that parses the documentation source fails to produce results for the procedural form.

In the scope of this report, the tool that generates search-index.json, such as the following copy for en/, requires an update:

<a href="http://php.net/manual/en/search-index.json" title="http://php.net/manual/en/search-index.json">http://php.net/manual/en/search-index.json</a>

The previous fixes were hacks that don't address the central problem (I added one such hack!) which is why this general issue remains.

Previous Comments:
Description:

Expected result:
All of these functions exist. They are aliases of MySQLi::real_escape_string() etc, but they do exist in the functional form. Also, if you do type the name blindly and correctly till the end, e.g. you type "mysqli_real_escape_string", and you hit Enter, the search engine does find the result and directs you to the relevant page: <a href="http://php.net/manual/en/mysqli.real-escape-string.php" title="http://php.net/manual/en/mysqli.real-escape-string.php">http://php.net/manual/en/mysqli.real-escape-string.php</a>

Hence, the autocomplete should suggest those results.

Actual result: