PHP PosgreSQL extension presence test added.

This commit is contained in:
tomas 2005-04-26 20:22:30 +00:00
parent 0961105d65
commit fe42c9bd83
2 changed files with 6 additions and 6 deletions

View file

@ -23,7 +23,7 @@
Author : $Author: tomas $ Author : $Author: tomas $
Version : $Revision: 1.7 $ Version : $Revision: 1.8 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/install/install.php,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/install/install.php,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -50,8 +50,8 @@ function errCallback($err)
exit(1); exit(1);
} }
if(!function_exists('domxml_open_file')){ if(!function_exists('pg_connect')){
trigger_error("DOMXML PHP extension required and not found.", E_USER_ERROR); trigger_error("PostgreSQL PHP extension required and not found.", E_USER_ERROR);
exit(2); exit(2);
} }

View file

@ -23,7 +23,7 @@
Author : $Author: tomas $ Author : $Author: tomas $
Version : $Revision: 1.16 $ Version : $Revision: 1.17 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/install/install.php,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/install/install.php,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -52,8 +52,8 @@ function errCallback($err)
exit(1); exit(1);
} }
if(!function_exists('domxml_open_file')){ if(!function_exists('pg_connect')){
trigger_error("DOMXML PHP extension required and not found.", E_USER_ERROR); trigger_error("PostgreSQL PHP extension required and not found.", E_USER_ERROR);
exit(2); exit(2);
} }