php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76447 no autocomplete results for function names that do exist
Submitted: 2018-06-11 16:30 UTC Modified: 2018-06-12 19:30 UTC
From: teo8976 at gmail dot com Assigned:
Status: Open Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: teo8976 at gmail dot com
New email:
PHP Version: OS:

 

 [2018-06-11 16:30 UTC] teo8976 at gmail dot com
Description:
------------
In the search box at the top-right of the screen at http://php.net, type "mysqli_real" as if you were going to search for "mysql_real_escape_string"



Expected result:
----------------
The autocomplete should show a few clickable results:
- mysqli_real_escape_string
- mysqli_real_connect
- mysqli_real_query

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: http://php.net/manual/en/mysqli.real-escape-string.php

Hence, the autocomplete should suggest those results.

Actual result:
--------------
It doesn't.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-12 19:30 UTC] philip@php.net
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:

  http://php.net/manual/en/search-index.json

The previous fixes were hacks that don't address the central problem (I added one such hack!) which is why this general issue remains.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Feb 16 01:01:26 2019 UTC