From 98b553cec08b64d28fc4adb99dc0e773ddfb08b8 Mon Sep 17 00:00:00 2001 From: tomas Date: Thu, 25 Nov 2004 20:17:10 +0000 Subject: [PATCH] DOMXML extension checking added. --- .../modules/storageServer/var/install/install.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/livesupport/modules/storageServer/var/install/install.php b/livesupport/modules/storageServer/var/install/install.php index a7cbfeeab..703f8a824 100644 --- a/livesupport/modules/storageServer/var/install/install.php +++ b/livesupport/modules/storageServer/var/install/install.php @@ -23,7 +23,7 @@ Author : $Author: tomas $ - Version : $Revision: 1.5 $ + Version : $Revision: 1.6 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/install/install.php,v $ ------------------------------------------------------------------------------*/ @@ -41,6 +41,11 @@ function errCallback($err) exit(1); } +if(!function_exists('domxml_open_file')){ + trigger_error("DOMXML PHP extension required and not found.", E_USER_ERROR); + exit(2); +} + PEAR::setErrorHandling(PEAR_ERROR_PRINT, "%s
\n"); $dbc = DB::connect($config['dsn'], TRUE); if(PEAR::isError($dbc)){ @@ -77,10 +82,11 @@ echo " TESTS:\n{$log}"; echo "# Delete test data ...\n"; $gb->deleteData(); -if(!($fp = @fopen($config['storageDir']."/_writeTest", 'w'))) +if(!($fp = @fopen($config['storageDir']."/_writeTest", 'w'))){ echo "\nmake {$config['storageDir']} dir webdaemon-writeable". "\nand run install again\n\n"; -else{ + exit(1); +}else{ fclose($fp); unlink($config['storageDir']."/_writeTest"); echo "#storageServer install: OK\n\n"; }