|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76547 Parameters in documentation dynamic search
Submitted: 2018-06-29 11:08 UTC Modified: 2018-09-18 10:12 UTC
From: david at frankieandshadow dot com Assigned:
Status: Suspended Package: Documentation problem
PHP Version: Irrelevant OS: NA
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: david at frankieandshadow dot com
New email:
PHP Version: OS:


 [2018-06-29 11:08 UTC] david at frankieandshadow dot com
It would be really helpful if in the dynamic search in the documentation it didn't just give the function names that match and the short description, but also their parameters, e.g. 

  strpos($haystack, $needle, [$offset=0]) => int
  Find the position of the first occurrence of a substring in a string

Rather than just 

  Find the position of the first occurrence of a substring in a string

In maybe 50% of cases, all I need to check is the order of the parameters (especially the search ones, because haystack and needle are so inconsistent in parameter positioning), and with the parameters and maybe the return type I very often wouldn't need to go the the complete page at all.

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-18 10:12 UTC]
-Status: Open +Status: Suspended -Type: Documentation Problem +Type: Feature/Change Request
 [2018-09-18 10:12 UTC]
Certainly not a bug – reclassifying.

This information is stored in the localStorage of the browser,
which is usually limited to a certain size, and we're already
close to 5MB if the search indexes for two languages are stored.
Since adding the parameter info might roughly double the amount of
data, it doesn't seem to be feasible to add it for now.
Suspending this ticket for the time being.

I suggest to use an IDE/editor with support for signature help of
built-in functions, anyway.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 20:01:32 2024 UTC