cvs: phpweb /include manual-lookup.inc

From: Date: Mon, 14 Apr 2008 20:34:13 +0000
Subject: cvs: phpweb /include manual-lookup.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1543@lists.php.net to get a copy of this message
bjori Mon Apr 14 20:34:13 2008 UTC Modified files: /phpweb/include manual-lookup.inc Log: Temporary workaround problems with the mysqli extension until someone can fix the docs http://cvs.php.net/viewvc.cgi/phpweb/include/manual-lookup.inc?r1=1.32&r2=1.33&diff_format=u Index: phpweb/include/manual-lookup.inc diff -u phpweb/include/manual-lookup.inc:1.32 phpweb/include/manual-lookup.inc:1.33 --- phpweb/include/manual-lookup.inc:1.32 Sat Dec 8 17:28:05 2007 +++ phpweb/include/manual-lookup.inc Mon Apr 14 20:34:13 2008 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: manual-lookup.inc,v 1.32 2007/12/08 17:28:05 bjori Exp $ +// $Id: manual-lookup.inc,v 1.33 2008/04/14 20:34:13 bjori Exp $ // We need this for error reporting include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc'; @@ -57,6 +57,11 @@ // Remove .. for security reasons $keyword = str_replace("..", "", $keyword); + + // FIXME: Temporary hack for mysqli_ functions + if (strpos($keyword, "mysqli_") === 0) { + $keyword[6] = "."; + } // Try to find a manual page with the specified prefix foreach ($sections as $section) { @@ -89,6 +94,7 @@ !($s = @sqlite_open($_SERVER['DOCUMENT_ROOT'] . '/backend/manual-lookup.sqlite'))) { return find_manual_page_slow($lang, $keyword); } + $kw = $keyword; // Try the preferred language first, then the // English one in case no page is found @@ -161,5 +167,5 @@ } // No match found - return find_manual_page_slow($lang, $keyword); + return find_manual_page_slow($lang, $kw); }

« previous php.webmaster (#1543) next »