svn: /web/php/trunk/include/ manual-lookup.inc
| From: | Hannes Magnusson | Date: | Wed, 06 Jul 2011 11:25:28 +0000 |
| Subject: | svn: /web/php/trunk/include/ manual-lookup.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11466@lists.php.net to get a copy of this message | ||
bjori Wed, 06 Jul 2011 11:25:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313003
Log:
Check if the file exists before trying to open it
Changed paths:
U web/php/trunk/include/manual-lookup.inc
Modified: web/php/trunk/include/manual-lookup.inc
===================================================================
--- web/php/trunk/include/manual-lookup.inc 2011-07-06 11:19:45 UTC (rev 313002)
+++ web/php/trunk/include/manual-lookup.inc 2011-07-06 11:25:28 UTC (rev 313003)
@@ -88,6 +88,7 @@
// open rather than popen to avoid any chance of confusion
// when rsync updates the database
if (!function_exists("sqlite_open") ||
+ !file_exists($_SERVER['DOCUMENT_ROOT'] .
'/backend/manual-lookup.sqlite') ||
!($s = @sqlite_open($_SERVER['DOCUMENT_ROOT'] .
'/backend/manual-lookup.sqlite'))) {
return find_manual_page_slow($lang, $keyword);
}