|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-11-12 02:55 UTC] php at jtrick dot net
Description: ------------ Searching for '_' (underscore) returns the following page: http://us3.php.net/manual/en/about.php A much more useful result location would be http://php.net/manual/en/function.gettext.php as _() is apparently a valid alias for gettext(). This was not known to me, and had it not been for another thoughtful user would have remained that way... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 05:00:01 2025 UTC |
Quite literally this, which doesn't fill me with great joy: diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc index d12d7e1..f21dc18 100644 --- a/include/manual-lookup.inc +++ b/include/manual-lookup.inc @@ -83,6 +83,10 @@ function find_manual_page_slow($lang, $keyword) // page shortcuts, so we avoid stat() calls on the server function find_manual_page($lang, $keyword) { + if ($keyword == '_') { + $keyword = 'function.gettext'; + } + // If there is no sqlite support, or we are unable to // open the database, fall back to normal search. Use // open rather than popen to avoid any chance of confusion