philip Wed Sep 5 16:16:55 2007 UTC
Modified files: /phpdoc/scripts functable.php Log: Added a fatal error check: Create the sqlite3 DB before use. http://cvs.php.net/viewvc.cgi/phpdoc/scripts/functable.php?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/scripts/functable.php diff -u phpdoc/scripts/functable.php:1.15 phpdoc/scripts/functable.php:1.16 --- phpdoc/scripts/functable.php:1.15 Tue Feb 6 21:29:51 2007 +++ phpdoc/scripts/functable.php Wed Sep 5 16:16:55 2007 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: Sean Coates <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ -$Id: functable.php,v 1.15 2007/02/06 21:29:51 bjori Exp $ +$Id: functable.php,v 1.16 2007/09/05 16:16:55 philip Exp $ */ // direct the output of this file into phpdoc/phpbook/phpbook-xsl/version.xml @@ -359,6 +359,11 @@ /////////////// /////////////// +if (!is_readable(PATH_DB)) { + echo 'Error: PATH_DB (', PATH_DB, ') must be a readable sqlite3 database. RTFS.', "\n"; + exit; +} + if (!getenv('DO_CVS')) { fwrite(STDERR, "Skipping CVS\n"); } else {